You are here

function fontyourface_menu in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 fontyourface.module \fontyourface_menu()
  2. 6 fontyourface.module \fontyourface_menu()

Implements hook_menu().

File

./fontyourface.module, line 20

Code

function fontyourface_menu() {
  $items = array();
  $items['admin/config/user-interface/fontyourface'] = array(
    'title' => '@font-your-face settings',
    'description' => 'Manage font provider accounts and imports.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_settings_form',
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/appearance/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/appearance/fontyourface/edit/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'fontyourface_admin_edit_form',
      4,
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'title callback' => 'fontyourface_admin_edit_form_title',
    'title arguments' => array(
      4,
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['fontyourface/autocomplete/tag'] = array(
    'title' => 'Autocomplete font tags',
    'page callback' => 'fontyourface_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}