function google_fonts_menu in Google Fonts 7
Same name and namespace in other branches
- 6.2 google_fonts.module \google_fonts_menu()
- 7.2 google_fonts.module \google_fonts_menu()
Implements hook_menu().
File
- ./
google_fonts.module, line 15 - This module enables Google Fonts on your website.
Code
function google_fonts_menu() {
$items = array();
$items['admin/config/system/google_fonts'] = array(
'title' => 'Google Fonts',
'description' => 'Select the Google Fonts to use.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'google_fonts_admin_settings_form',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'google_fonts.admin.inc',
);
$items['admin/config/system/google_fonts/update'] = array(
'title' => 'Update Google Fonts list',
'page callback' => '_google_fonts_update_font_list',
'access arguments' => array(
'administer site configuration',
),
'type' => MENU_CALLBACK,
);
return $items;
}