function locale_form_path_admin_form_alter
locale_form_path_admin_form_alter(&$form, &$form_state)
Implements hook_form_FORM_ID_alter().
File
- modules/locale/locale.module, line 311
- Add language handling functionality and enables the translation of the user interface to languages other than English.
Code
function locale_form_path_admin_form_alter(&$form, &$form_state) { $form['language'] = array( '#type' => 'select', '#title' => t('Language'), '#options' => array(LANGUAGE_NONE => t('All languages')) + locale_language_list('name'), '#default_value' => $form['language']['#value'], '#weight' => -10, '#description' => t('A path alias set for a specific language will always be used when displaying this page in that language, and takes precedence over path aliases set for <em>All languages</em>.'), ); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!locale!locale.module/function/locale_form_path_admin_form_alter/7.x