You are here

function local_fonts_menu in @font-your-face 7

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

Implements hook_menu().

File

modules/local_fonts/local_fonts.module, line 18

Code

function local_fonts_menu() {
  $items = array();
  $items['admin/config/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',
    ),
  );
  $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;
}