You are here

function nodeviewcount_is_node_view_mode_count in Node view count 7

Same name and namespace in other branches
  1. 7.3 includes/nodeviewcount.api.inc \nodeviewcount_is_node_view_mode_count()
  2. 7.2 includes/nodeviewcount.api.inc \nodeviewcount_is_node_view_mode_count()

Check node on content type for node view count.

Parameters

string $view_mode: The node view mode for checking.

Return value

bool TRUE if the node content type checked for count views, otherwise FALSE.

1 call to nodeviewcount_is_node_view_mode_count()
nodeviewcount_node_view in ./nodeviewcount.module
Implements hook_node_view().

File

includes/nodeviewcount.api.inc, line 45

Code

function nodeviewcount_is_node_view_mode_count($view_mode) {
  $node_view_modes = variable_get('nodeviewcount_node_view_modes', array());
  if (!empty($node_view_modes[$view_mode])) {
    return TRUE;
  }
  return FALSE;
}