function locale_form_path_admin_form_alter

7.x locale.module locale_form_path_admin_form_alter(&$form, &$form_state)

Implements hook_form_FORM_ID_alter().

File

drupal-7.x/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>.'),
  );
}