You are here

function user_pages_user_users_enable in User Pages 6

Same name and namespace in other branches
  1. 7 plugins/tasks/users.inc \user_pages_user_users_enable()

Callback to enable/disable the page from the UI.

1 string reference to 'user_pages_user_users_enable'
user_pages_users_page_manager_tasks in plugins/tasks/users.inc

File

plugins/tasks/users.inc, line 80

Code

function user_pages_user_users_enable($cache, $status) {
  variable_set('user_pages_user_users_disabled', $status);

  // Set a global flag so that the menu routine knows it needs
  // to set a message if enabling cannot be done.
  if (!$status) {
    $GLOBALS['user_pages_user_enabling_users'] = TRUE;
  }
}