You are here

function fontyourface_ui_menu in @font-your-face 7.2

Implements hook_menu().

File

modules/fontyourface_ui/fontyourface_ui.module, line 6

Code

function fontyourface_ui_menu() {
  $items = array();
  $items['admin/config/user-interface/fontyourface'] = array(
    'title' => '@font-your-face settings',
    'description' => 'Manage settings for how font providers work. (Apply site fonts ' . l(t('under themes'), 'admin/appearance/fontyourface') . '.)',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_ui_settings_form',
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/user-interface/fontyourface/general'] = array(
    'title' => 'General',
    'description' => 'Manage settings for how font providers work. (Apply site fonts ' . l(t('under themes'), 'admin/appearance/fontyourface') . '.)',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/appearance/fontyourface'] = array(
    'title' => '@font-your-face',
    'page callback' => 'fontyourface_ui_apply_page',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/appearance/fontyourface/apply'] = array(
    'title' => 'Enabled fonts',
    'description' => 'Apply fonts with CSS selectors.',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/appearance/fontyourface/browse'] = array(
    'title' => 'Browse all fonts',
    'page callback' => 'fontyourface_ui_browse_page',
    'description' => 'Browse fonts to enable.',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_LOCAL_TASK,
    'weight' => 0,
  );
  $items['admin/appearance/fontyourface/edit/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_ui_admin_edit_form',
      4,
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'title callback' => 'fontyourface_ui_admin_edit_form_title',
    'title arguments' => array(
      4,
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['fontyourface/autocomplete/tag'] = array(
    'title' => 'Autocomplete font tags',
    'page callback' => 'fontyourface_ui_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/appearance/fontyourface/enable/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_ui_admin_enable_form',
      4,
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'title callback' => 'fontyourface_ui_admin_enable_title',
    'title arguments' => array(
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/appearance/fontyourface/disable/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_ui_admin_disable_form',
      4,
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'title callback' => 'fontyourface_ui_admin_disable_title',
    'title arguments' => array(
      4,
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/appearance/fontyourface/ajax/enable'] = array(
    'title' => '@font-your-face AJAX enable',
    'page callback' => 'fontyourface_ui_admin_enable_ajax',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['admin/appearance/fontyourface/ajax/disable'] = array(
    'title' => '@font-your-face AJAX disable',
    'page callback' => 'fontyourface_ui_admin_disable_ajax',
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}