You are here

adminrole.drush.inc in Admin role 5

Same filename and directory in other branches
  1. 6 adminrole.drush.inc
  2. 7 adminrole.drush.inc

Drush integration functions for the adminrole module.

File

adminrole.drush.inc
View 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

Namesort descending Description
adminrole_drush_command Implements hook_drush_command().
drush_adminrole_update Drush callback; update the admin role with all current available permissions.