| 1 |
<?php |
<?php |
| 2 |
// $Id: languageicons.module,v 1.3 2008/10/11 13:36:12 freso Exp $ |
// $Id: languageicons.module,v 1.4 2009/02/02 20:10:33 freso Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 47 |
* Implementation of hook_menu(). |
* Implementation of hook_menu(). |
| 48 |
*/ |
*/ |
| 49 |
function languageicons_menu() { |
function languageicons_menu() { |
| 50 |
// Direct copy of the Configure tab from locale module to |
$items['admin/settings/language/icons'] = array( |
|
// make space for the "Localization sharing" tab below. |
|
|
$items['admin/settings/language/configure/language'] = array( |
|
|
'title' => 'Language negotiation', |
|
|
'page callback' => 'locale_inc_callback', |
|
|
'page arguments' => array('drupal_get_form', 'locale_languages_configure_form'), |
|
|
'access arguments' => array('administer languages'), |
|
|
'weight' => -10, |
|
|
'type' => MENU_DEFAULT_LOCAL_TASK, |
|
|
); |
|
|
|
|
|
$items['admin/settings/language/configure/icons'] = array( |
|
| 51 |
'title' => 'Icons', |
'title' => 'Icons', |
| 52 |
'page callback' => 'drupal_get_form', |
'page callback' => 'drupal_get_form', |
| 53 |
'page arguments' => array('languageicons_admin_settings'), |
'page arguments' => array('languageicons_admin_settings'), |