You are here

function themekey_ui_nodeapi in ThemeKey 6

Same name and namespace in other branches
  1. 6.4 themekey_ui.module \themekey_ui_nodeapi()
  2. 6.2 themekey_ui.module \themekey_ui_nodeapi()
  3. 6.3 themekey_ui.module \themekey_ui_nodeapi()

Implementation of hook_nodeapi().

File

./themekey_ui.module, line 68

Code

function themekey_ui_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if (variable_get('themekey_ui_nodeform', 0) && user_access('assign node themes') && variable_get('themekey_ui_nodeform|' . $node->type, 1)) {
    require_once drupal_get_path('module', 'themekey_ui') . '/themekey_ui_admin.inc';
    _themekey_ui_nodeapi($node, $op, $a3, $a4);
  }
}