function fonts_com_menu in @font-your-face 7.2
Implements hook_menu().
File
- modules/
fonts_com/ fonts_com.module, line 6
Code
function fonts_com_menu() {
$items = array();
$items['admin/config/user-interface/fontyourface/fonts_com'] = array(
'title' => 'Fonts.com',
'description' => 'Manage settings for Fonts.com',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fonts_com_setup_form',
),
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/user-interface/fontyourface/fonts_com/setup'] = array(
'title' => 'Set up',
'description' => 'Account settings for Fonts.com',
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/config/user-interface/fontyourface/fonts_com/project'] = array(
'title' => 'Project',
'description' => 'Project settings for Fonts.com',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fonts_com_project_form',
),
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_LOCAL_TASK,
'weight' => 1,
);
$items['admin/config/user-interface/fontyourface/fonts_com/project/new'] = array(
'title' => 'Create new project',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fonts_com_project_edit_form',
'',
),
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/user-interface/fontyourface/fonts_com/project/edit/%'] = array(
'title' => 'Edit project',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'fonts_com_project_edit_form',
7,
),
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_CALLBACK,
);
$items['admin/appearance/fontyourface/browse/fonts_com'] = array(
'title' => 'Browse fonts',
'page callback' => 'fonts_com_browse',
'description' => 'Browse fonts to enable.',
'access arguments' => array(
'administer @font-your-face',
),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
);
return $items;
}