You are here

function themekey_ui_node_insert in ThemeKey 7

Same name and namespace in other branches
  1. 7.3 themekey_ui.module \themekey_ui_node_insert()
  2. 7.2 themekey_ui.module \themekey_ui_node_insert()

Implementation of hook_node_insert

Parameters

unknown_type $node:

1 call to themekey_ui_node_insert()
themekey_ui_node_update in ./themekey_ui.module
Implementation of hook_node_update

File

./themekey_ui.module, line 300
ThemeKey UI is an extension for ThemeKey

Code

function themekey_ui_node_insert($node) {
  if (!empty($node->themekey_ui_theme)) {
    db_insert('themekey_ui_node_theme')
      ->fields(array(
      'nid' => $node->nid,
      'vid' => $node->vid,
      'theme' => $node->themekey_ui_theme,
    ))
      ->execute();
  }
}