You are here

function nodehierarchy_views_nodeapi in Node Hierarchy 5

Same name and namespace in other branches
  1. 6.3 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
  2. 6 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()
  3. 6.2 nodehierarchy_views/nodehierarchy_views.module \nodehierarchy_views_nodeapi()

Implementation of hook_nodeapi().

File

nodehierarchy_views/nodehierarchy_views.module, line 15
Views.module integration for nodehierarchy.module.

Code

function nodehierarchy_views_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  switch ($op) {
    case 'insert':
      return nodehierarchy_views_insert($node);
      break;
    case 'update':
      return nodehierarchy_views_update($node);
      break;
    case 'load':
      return nodehierarchy_views_load_node($node);
      break;
    case 'delete':
      nodehierarchy_views_delete_node($node);
      break;
    case 'submit':
      break;
    case 'validate':
      break;
    case 'view':
      if ($page && user_access('access embedded child view')) {
        nodehierarchy_views_embed_children($node);
      }
      break;
  }
}