function secure_permissions_drush_command in Secure Permissions 6
Same name and namespace in other branches
- 7.2 secure_permissions.drush.inc \secure_permissions_drush_command()
- 7 secure_permissions.drush.inc \secure_permissions_drush_command()
Implementation of hook_drush_command().
File
- includes/
secure_permissions.drush.inc, line 13 - Drush commands for Secure Permissions.
Code
function secure_permissions_drush_command() {
$items['rebuild-perms'] = array(
'callback' => 'secure_permissions_drush_rebuild',
'description' => dt('Rebuild the site\'s roles and permissions with Secure Permissions.'),
'examples' => array(
'drush rebuild-roles' => 'Rebuilds site roles and permissions from code using available hook_secure_permissions_roles() implementations.',
),
'arguments' => array(),
'drupal dependencies' => array(
'secure_permissions',
),
);
$items['sec-perms'] = array(
'callback' => 'secure_permissions_drush_toggle_active',
'description' => dt('Control the settings of the Secure Permissions module from the command line.'),
'examples' => array(
'drush sec-perms on' => 'Activates the Secure Permissions module from the command line, note this is distinct and different from enabling the module.',
'drush sec-perms off' => 'Deactivates the Secure Permissions module from the command line, note this is distinct and different from disabling the module.',
),
'arguments' => array(
'action' => "Required. Currently has two states - set to 'on' to activate Secure Permissions and 'off' to deactivate.",
),
'drupal dependencies' => array(
'secure_permissions',
),
);
return $items;
}