function themekey_ui_pathalias in ThemeKey 6.4
Same name and namespace in other branches
- 6.2 themekey_ui_admin.inc \themekey_ui_pathalias()
- 6.3 themekey_ui_admin.inc \themekey_ui_pathalias()
- 7.3 themekey_ui_admin.inc \themekey_ui_pathalias()
- 7 themekey_ui_admin.inc \themekey_ui_pathalias()
- 7.2 themekey_ui_admin.inc \themekey_ui_pathalias()
Adds theme select box to url alias form
See also
themekey_ui_pathalias_submit()
1 call to themekey_ui_pathalias()
- themekey_ui_form_alter in ./
themekey_ui.module - Implements hook_form_alter().
2 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
File
- ./
themekey_ui_admin.inc, line 186
Code
function themekey_ui_pathalias(&$form) {
if (!isset($form['#alias'])) {
return;
}
list($id, $theme) = themekey_ui_get_path_theme($form['#alias']['dst']);
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, $form['submit']['weight'] - 1);
$form['themekey_ui_themes']['themekey_rule_id'] = array(
'#type' => 'value',
'#value' => $id,
);
array_unshift($form['#submit'], 'themekey_ui_pathalias_submit');
}