You are here

function pagestyle_menu in Page Style 5

Same name and namespace in other branches
  1. 6 pagestyle.module \pagestyle_menu()
  2. 7 pagestyle.module \pagestyle_menu()

Implement hook_menu().

File

./pagestyle.module, line 24
Display a style changer on the page and in the browser menue for a better web accessibility.

Code

function pagestyle_menu() {
  $items = array();
  $items[] = array(
    'path' => 'admin/settings/pagestyle',
    'title' => t('Page Style configuration'),
    'description' => 'Settings for the display and values.',
    'access' => user_access('administer pagestyle'),
    'callback' => 'drupal_get_form',
    'callback arguments' => array(
      'pagestyle_admin_settings',
    ),
  );
  $items[] = array(
    'path' => 'pagestyle/black_white',
    'title' => t('Page Style') . ' ' . t('Black') . '/' . t('White'),
    'callback' => 'pagestyle_black_white',
    'access' => user_access('access pagestyle content'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'pagestyle/white_black',
    'title' => t('Page Style') . ' ' . t('White') . '/' . t('Black'),
    'callback' => 'pagestyle_white_black',
    'access' => user_access('access pagestyle content'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'pagestyle/yellow_blue',
    'title' => t('Page Style') . ' ' . t('Yellow') . '/' . t('Blue'),
    'callback' => 'pagestyle_yellow_blue',
    'access' => user_access('access pagestyle content'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'pagestyle/standard',
    'title' => t('Page Style') . ' ' . t('Standard'),
    'callback' => 'pagestyle_standard',
    'access' => user_access('access pagestyle content'),
    'type' => MENU_CALLBACK,
  );
  $items[] = array(
    'path' => 'pagestyle/set',
    'title' => t('Page Style'),
    'callback' => 'pagestyle_set',
    'access' => user_access('access pagestyle content'),
    'type' => MENU_CALLBACK,
  );
  return $items;
}