You are here

function nodeviewcount_get_node_view_modes_count in Node view count 7

Same name and namespace in other branches
  1. 7.3 includes/nodeviewcount.api.inc \nodeviewcount_get_node_view_modes_count()
  2. 7.2 includes/nodeviewcount.api.inc \nodeviewcount_get_node_view_modes_count()
1 call to nodeviewcount_get_node_view_modes_count()
nodeviewcount_node_view in ./nodeviewcount.module
Implements hook_node_view().

File

includes/nodeviewcount.api.inc, line 53

Code

function nodeviewcount_get_node_view_modes_count() {
  $node_view_modes_count = array();
  $node_view_modes = variable_get('nodeviewcount_node_view_modes', array());
  foreach ($node_view_modes as $node_view_mode) {
    if ($node_view_mode !== 0) {
      $node_view_modes_count[] = $node_view_mode;
    }
  }
  return $node_view_modes_count;
}