You are here

function administerusersbyrole_install in Administer Users by Role 7.2

Implementation of hook_install().

File

./administerusersbyrole.install, line 11
Update migration code for administerusersbyrole.

Code

function administerusersbyrole_install() {

  // We need to run after various other modules
  // - After entity so that our hook_entity_info_alter is used.
  // - After admin_views else due to a bug (https://www.drupal.org/node/2425121) it will break menu access settings.
  // - After any other access modules so that our hook_menu_alter is used, as we will try harder than most modules
  //   to take account of other module's settings.
  db_query("UPDATE {system} SET weight = 25 WHERE name = 'administerusersbyrole'");
}