function ctools_node_language_ctools_access_settings

Settings form for the 'by node_language' access plugin.

1 string reference to 'ctools_node_language_ctools_access_settings'
node_language.inc in plugins/access/node_language.inc
Plugin to provide access control based upon node type.

File

plugins/access/node_language.inc, line 28

Code

function ctools_node_language_ctools_access_settings($form, &$form_state, $conf) {
    $options = array(
        'current' => t('Current site language'),
        'default' => t('Default site language'),
        'no_language' => t('No 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 node is in one of the selected languages.'),
        '#default_value' => $conf['language'],
    );
    return $form;
}