You are here

function translation_admin_settings in Internationalization 5.3

Same name and namespace in other branches
  1. 5 translation/translation.module \translation_admin_settings()
  2. 5.2 translation/translation.module \translation_admin_settings()

Form builder function: settings form

2 string references to 'translation_admin_settings'
i18ntaxonomy_form_alter in contrib/i18ntaxonomy.module
Implementation of hook_form_alter().
translation_menu in translation/translation.module
Implementation of hook_menu().

File

translation/translation.module, line 133

Code

function translation_admin_settings() {
  $form['i18n_translation_links'] = array(
    '#type' => 'radios',
    '#title' => t('Language Management'),
    '#default_value' => variable_get('i18n_translation_links', 0),
    '#options' => array(
      t('Interface language depends on content.'),
      t('Interface language is independent'),
    ),
    '#description' => t("Whether the whole page should switch language when clicking on a node translation or not."),
  );
  $form['i18n_translation_node_links'] = array(
    '#type' => 'radios',
    '#title' => t('Links to node translations'),
    '#default_value' => variable_get('i18n_translation_node_links', 0),
    '#options' => array(
      t('None.'),
      t('Main page only'),
      t('Teaser and Main page'),
    ),
    '#description' => t("Links from nodes to translated versions."),
  );
  $form['i18n_translation_workflow'] = array(
    '#type' => 'radios',
    '#title' => t('Translation workflow'),
    '#default_value' => variable_get('i18n_translation_workflow', 1),
    '#options' => array(
      t('Disabled'),
      t('Enabled'),
    ),
    '#description' => t("If enabled some worklow will be provided for content translation."),
  );
  return system_settings_form($form);
}