function ctools_site_language_ctools_access_settings
Settings form for the 'by site_language' access plugin.
1 string reference to 'ctools_site_language_ctools_access_settings'
- site_language.inc in plugins/
access/ site_language.inc - Plugin to provide access control based upon node type.
File
-
plugins/
access/ site_language.inc, line 27
Code
function ctools_site_language_ctools_access_settings($form, &$form_state, $conf) {
$options = array(
'default' => t('Default site language'),
);
$options = array_merge($options, locale_language_list());
$form['settings']['language'] = array(
'#title' => t('Language'),
'#type' => 'checkboxes',
'#options' => $options,
'#description' => t('Pass only if the current site language is one of the selected languages.'),
'#default_value' => $conf['language'],
);
return $form;
}