forked from josereyero/i18n
/
i18n_select.admin.inc
43 lines (38 loc) · 1.39 KB
/
i18n_select.admin.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
// $Id: i18n_select.admin.inc,v 1.1.2.1 2010/11/09 10:31:32 brucepearson Exp $
function i18n_select_admin_settings() {
// Content selection options.
$form['selection'] = array(
'#type' => 'fieldset',
'#title' => t('Language content filtering'),
);
$form['selection']['mode'] = array(
'#type' => 'markup',
'#markup' => '<strong>' . t('Content selection mode') . '</strong>',
);
$form['selection']['i18n_select_missing_translation'] = array(
'#type' => 'checkbox',
'#title' => t('When translation is missing, show content in the default language'),
'#default_value' => variable_get('i18n_select_missing_translation', FALSE),
);
$form['selection']['types'] = array(
'#type' => 'markup',
'#markup' => '<strong>' . t('Content to filter by language') . '</strong>',
);
$form['selection']['i18n_select_nodes'] = array(
'#type' => 'checkbox',
'#title' => t('Nodes'),
'#default_value' => variable_get('i18n_select_nodes', TRUE),
);
$form['selection']['i18n_select_blocks'] = array(
'#type' => 'checkbox',
'#title' => t('Blocks (not implemented)'),
'#default_value' => variable_get('i18n_select_blocks', TRUE),
);
$form['selection']['i18n_select_taxonomy'] = array(
'#type' => 'checkbox',
'#title' => t('Taxonomy'),
'#default_value' => variable_get('i18n_select_taxonomy', TRUE),
);
return system_settings_form($form);
}