function textsize_menu in Text Size 7
Same name and namespace in other branches
- 5 textsize.module \textsize_menu()
- 6 textsize.module \textsize_menu()
Implement hook_menu().
File
- ./
textsize.module, line 38 - Display a text size changer on the page for a better web accessibility.
Code
function textsize_menu() {
$items = array();
$items['admin/config/user-interface/textsize'] = array(
'title' => 'Text Size',
'description' => 'Settings for the display and values.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'textsize_admin_settings',
),
'access arguments' => array(
'administer textsize',
),
);
$items['textsize/increase'] = array(
'title' => 'Text Size Increase',
'page callback' => 'textsize_increase',
'description' => 'Decrease text size.',
'access arguments' => array(
'access textsize content',
),
'menu_name' => 'textsize',
);
$items['textsize/decrease'] = array(
'title' => 'Text Size Decrease',
'page callback' => 'textsize_decrease',
'description' => 'Increase text size.',
'access arguments' => array(
'access textsize content',
),
'menu_name' => 'textsize',
);
$items['textsize/normal'] = array(
'title' => 'Text Size Normal',
'page callback' => 'textsize_normal',
'description' => 'Set the text size to normal.',
'access arguments' => array(
'access textsize content',
),
'menu_name' => 'textsize',
);
$items['textsize/set'] = array(
'title' => 'Text Size',
'page callback' => 'textsize_set',
'description' => 'Set the text size.',
'access arguments' => array(
'access textsize content',
),
'menu_name' => 'textsize',
);
return $items;
}