You are here

function themekey_ui_pathalias in ThemeKey 7.2

Same name and namespace in other branches
  1. 6.4 themekey_ui_admin.inc \themekey_ui_pathalias()
  2. 6.2 themekey_ui_admin.inc \themekey_ui_pathalias()
  3. 6.3 themekey_ui_admin.inc \themekey_ui_pathalias()
  4. 7.3 themekey_ui_admin.inc \themekey_ui_pathalias()
  5. 7 themekey_ui_admin.inc \themekey_ui_pathalias()

Adds theme select box to url alias form

See also

path_admin_form()

themekey_ui_pathalias_submit()

1 call to themekey_ui_pathalias()
themekey_ui_form_alter in ./themekey_ui.module
Implements hook_form_alter().
3 string references to 'themekey_ui_pathalias'
themekey_ui_form_alter in ./themekey_ui.module
Implements hook_form_alter().
themekey_ui_settings_form in ./themekey_ui_admin.inc
ThemeKey UI settings form
themekey_ui_settings_form_validate in ./themekey_ui_admin.inc
Validation of

File

./themekey_ui_admin.inc, line 303

Code

function themekey_ui_pathalias(&$form) {
  if (!isset($form['alias'])) {
    return;
  }
  list($id, $theme) = themekey_ui_get_path_theme($form['alias']['#default_value']);
  themekey_ui_theme_select_form($form, t('Theme configuration'), t('Select a theme that will be used whenever content is requested using this path alias.'), $theme, -1);
  $form['themekey_ui_themes']['themekey_rule_id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  $form['#submit'][] = 'themekey_ui_pathalias_submit';
}