You are here

function themekey_ui_set_path_theme in ThemeKey 6

Same name and namespace in other branches
  1. 6.4 themekey_ui_helper.inc \themekey_ui_set_path_theme()
  2. 6.2 themekey_ui_helper.inc \themekey_ui_set_path_theme()
  3. 6.3 themekey_ui_helper.inc \themekey_ui_set_path_theme()
  4. 7.3 themekey_ui_helper.inc \themekey_ui_set_path_theme()
  5. 7 themekey_ui_helper.inc \themekey_ui_set_path_theme()
  6. 7.2 themekey_ui_helper.inc \themekey_ui_set_path_theme()

Function themekey_ui_set_path_theme().

2 calls to themekey_ui_set_path_theme()
_themekey_ui_nodeapi in ./themekey_ui_admin.inc
Function _themekey_ui_nodeapi().
_themekey_ui_pathalias_submit in ./themekey_ui_admin.inc
Function _themekey_ui_pathalias_submit().

File

./themekey_ui_helper.inc, line 40

Code

function themekey_ui_set_path_theme($path, $theme = 'default') {
  $item = array(
    'path' => $path,
    'theme' => $theme,
  );
  if ($id = db_result(db_query('SELECT id FROM {themekey_paths} WHERE path = \'%s\'', $path))) {
    $item['id'] = $id;
  }
  _themekey_path_set($item);
}