function secure_permissions_drush_rebuild in Secure Permissions 7.2
Same name and namespace in other branches
- 6 includes/secure_permissions.drush.inc \secure_permissions_drush_rebuild()
- 7 secure_permissions.drush.inc \secure_permissions_drush_rebuild()
Callback function for drush secure-permissions-rebuild.
Calls the default rebuild function and logs the event.
1 string reference to 'secure_permissions_drush_rebuild'
- secure_permissions_drush_command in ./
secure_permissions.drush.inc - Implements hook_drush_command().
File
- ./
secure_permissions.drush.inc, line 52 - Drush commands for Secure Permissions.
Code
function secure_permissions_drush_rebuild() {
$active = variable_get('secure_permissions_active', 0);
if ($active) {
secure_permissions_rebuild();
_secure_permissions_message_drush('Roles and permissions rebuilt.', array(), 'success');
}
else {
_secure_permissions_message_drush('Could not rebuild roles and permissions because Secure Permissions is not active. Use "drush secure-permissions on" to activate the module from the command line.', array(), 'error');
}
}