adminrole.drush.inc in Admin role 7
Same filename and directory in other branches
Drush integration functions for the adminrole module.
File
adminrole.drush.incView source
<?php
/**
* @file
* Drush integration functions for the adminrole module.
*/
/**
* Implements hook_drush_command().
*/
function adminrole_drush_command() {
$items['adminrole-update'] = array(
'description' => 'Update the administrator role permissions.',
'callback' => 'drush_adminrole_update',
'drupal dependencies' => array(
'adminrole',
),
);
return $items;
}
/**
* Drush callback; update the admin role with all current available permissions.
*/
function drush_adminrole_update() {
adminrole_update_permissions();
drush_print(dt('Administrator role permissions updated.'));
}
Functions
Name | Description |
---|---|
adminrole_drush_command | Implements hook_drush_command(). |
drush_adminrole_update | Drush callback; update the admin role with all current available permissions. |