function ctools_theme_ctools_access_settings

Settings form for the 'by theme' access plugin.

1 string reference to 'ctools_theme_ctools_access_settings'
theme.inc in plugins/access/theme.inc
Plugin to provide access control based on user themeission strings.

File

plugins/access/theme.inc, line 24

Code

function ctools_theme_ctools_access_settings($form, &$form_state, $conf) {
    $themes = array();
    foreach (list_themes() as $key => $theme) {
        $themes[$key] = $theme->info['name'];
    }
    $form['settings']['theme'] = array(
        '#type' => 'select',
        '#options' => $themes,
        '#title' => t('Themes'),
        '#default_value' => $conf['theme'],
        '#description' => t('This will only be accessed if the current theme is the selected theme.'),
    );
    return $form;
}