function fontyourface_menu in @font-your-face 6.2
Same name and namespace in other branches
- 6 fontyourface.module \fontyourface_menu()
- 7 fontyourface.module \fontyourface_menu()
Implements hook_menu().
File
- ./
fontyourface.module, line 15
Code
function fontyourface_menu() {
$items = array();
$items['admin/settings/fontyourface'] = array(
'title' => '@font-your-face settings',
'description' => 'Manage settings for how font providers work. (Manage site fonts ' . l(t('under themes'), 'admin/build/themes/fontyourface') . '.)',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fontyourface_settings_form',
),
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/build/themes/fontyourface'] = array(
'title' => '@font-your-face',
'page callback' => 'fontyourface_admin_page',
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
$items['admin/build/themes/fontyourface/edit/%'] = array(
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fontyourface_admin_edit_form',
5,
),
'access arguments' => array(
'administer @font-your-face',
),
'title callback' => 'fontyourface_admin_edit_form_title',
'title arguments' => array(
5,
),
'type' => MENU_CALLBACK,
);
return $items;
}