You are here

function node_gallery_api_node_view in Node Gallery 7

Implements hook_node_view().

File

./node_gallery_api.module, line 782
Node Gallery module.

Code

function node_gallery_api_node_view($node, $view_mode = 'full') {
  if (in_array($node->type, (array) node_gallery_api_get_types('gallery'))) {
    _node_gallery_api_gallery_view($node, $view_mode);
  }
  elseif (in_array($node->type, (array) node_gallery_api_get_types('item'))) {
    _node_gallery_api_item_view($node, $view_mode);
  }
}