You are here

function locale_languages_edit_form in Drupal 6

Same name and namespace in other branches
  1. 7 modules/locale/locale.admin.inc \locale_languages_edit_form()

Editing screen for a particular language.

Parameters

$langcode: Language code of the language to edit.

Related topics

1 string reference to 'locale_languages_edit_form'
locale_menu in modules/locale/locale.module
Implementation of hook_menu().

File

includes/locale.inc, line 199
Administration functions for locale.module.

Code

function locale_languages_edit_form(&$form_state, $langcode) {
  if ($language = db_fetch_object(db_query("SELECT * FROM {languages} WHERE language = '%s'", $langcode))) {
    $form = array();
    _locale_languages_common_controls($form, $language);
    $form['submit'] = array(
      '#type' => 'submit',
      '#value' => t('Save language'),
    );
    $form['#submit'][] = 'locale_languages_edit_form_submit';
    $form['#validate'][] = 'locale_languages_edit_form_validate';
    return $form;
  }
  else {
    drupal_not_found();
  }
}