You are here

function view_custom_table_administer_callback in Views Custom Table 7

Implements administer_custom_table_views_callback().

1 string reference to 'view_custom_table_administer_callback'
view_custom_table_menu in ./view_custom_table.module
Implements hook_menu().

File

./view_custom_table.module, line 111
view_custom_table.module

Code

function view_custom_table_administer_callback($account = NULL) {
  if ($account == NULL) {
    global $user;
    $account = $user;
  }
  if (user_access('administer all custom table in views', $account) || user_access('administer own custom table in views', $account)) {
    return TRUE;
  }
  return FALSE;
}