You are here

function toolbar_visibility_menu in Toolbar Visibility 7

Implements hook_menu().

File

./toolbar_visibility.module, line 22
Give a way to remove the Drupal Toolbar on selected themes.

Code

function toolbar_visibility_menu() {
  $items = array();
  $items['admin/config/user-interface/toolbar-visibility'] = array(
    'title' => 'Toobar Visibility',
    'description' => 'Chose themes where remove the Toolbar',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'toolbar_visibility_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer Toobar Visibility',
    ),
  );
  return $items;
}