You are here

function local_fonts_menu in @font-your-face 7.2

Same name and namespace in other branches
  1. 6.2 modules/local_fonts/local_fonts.module \local_fonts_menu()
  2. 7 modules/local_fonts/local_fonts.module \local_fonts_menu()

Implements hook_menu().

File

modules/local_fonts/local_fonts.module, line 19

Code

function local_fonts_menu() {
  $items = array();
  $items['admin/config/user-interface/fontyourface/local_fonts'] = array(
    'title' => 'Import Local Font',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'local_fonts_add_form',
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/appearance/fontyourface/local_fonts/delete/%'] = array(
    'title' => 'Delete Local Font',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'local_fonts_delete_form',
      5,
    ),
    'access arguments' => array(
      'administer @font-your-face',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}