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