6 * Extended multilanguage administration and module settings UI.
10 * Form builder function.
12 * TO DO: Add exclude paths for content selection
13 * Some options have been removed from previous versions:
14 * - Languages are now taken from locale module unless defined in settings file
15 * - Language dependent tables are authomatically used if defined in settings file
17 function i18n_admin_settings() {
18 // Content selection options
19 $form['selection'] = array(
20 '#type' => 'fieldset',
21 '#title' => t('Content selection'),
22 //'#collapsible' => TRUE,
23 //'#collapsed' => TRUE,
25 $form['selection']['i18n_selection_mode'] = array(
27 '#title' => t('Content selection mode'),
28 '#default_value' => variable_get('i18n_selection_mode', 'simple'),
29 '#options' => _i18n_selection_mode(),
30 '#description' => t('Determines which content to show depending on language.'),
32 return system_settings_form($form);
35 // List of selection modes
36 function _i18n_selection_mode(){
38 'simple' => t('Only current language and no language'),
39 'mixed' => t('Only current and default languages and no language'),
40 'default' => t('Only default language and no language'),
41 'strict' => t('Only current language'),
42 'off' => t('All content. No language conditions apply'),