function rules_drush_command

Implements hook_drush_command().

File

./rules.drush.inc, line 11

Code

function rules_drush_command() {
    $items = array();
    $items['rules-list'] = array(
        'description' => 'List all the active and inactive rules for your site.',
        'drupal dependencies' => array(
            'rules',
        ),
        'aliases' => array(
            'rules',
        ),
        'outputformat' => array(
            'default' => 'table',
            'pipe-format' => 'list',
            'field-labels' => array(
                'rule' => dt('Rule'),
                'label' => dt('Label'),
                'event' => dt('Event'),
                'active' => dt('Active'),
                'status' => dt('Status'),
            ),
            'output-data-type' => 'format-table',
        ),
    );
    $items['rules-enable'] = array(
        'description' => 'Enable a rule on your site.',
        'arguments' => array(
            'rule' => 'Rule name to enable.',
        ),
        'drupal dependencies' => array(
            'rules',
        ),
        'aliases' => array(
            're',
        ),
    );
    $items['rules-disable'] = array(
        'description' => 'Disable a rule on your site.',
        'arguments' => array(
            'rule' => 'Rule name to export.',
        ),
        'drupal dependencies' => array(
            'rules',
        ),
        'aliases' => array(
            'rd',
        ),
    );
    $items['rules-revert'] = array(
        'description' => 'Revert a rule to its original state on your site.',
        'arguments' => array(
            'rule' => 'Rule name to revert.',
        ),
        'drupal dependencies' => array(
            'rules',
        ),
    );
    $items['rules-delete'] = array(
        'description' => 'Delete a rule on your site.',
        'arguments' => array(
            'rule' => 'Rules name to delete.',
        ),
        'drupal dependencies' => array(
            'rules',
        ),
    );
    $items['rules-export'] = array(
        'description' => 'Export a rule.',
        'arguments' => array(
            'rule' => 'Rules name to export.',
        ),
        'drupal dependencies' => array(
            'rules',
        ),
    );
    return $items;
}