You are here

function _flippy_use_pager in Flippy 7

Determine if the Flippy pager should be shown for the give node.

Parameters

$node: Node to check for pager

Return value

Boolean: TRUE if pager should be shown, FALSE if not

2 calls to _flippy_use_pager()
flippy_node_view in ./flippy.module
Implements hook_node_view().
flippy_pager_block in ./flippy.module
Render the Flippy pager block.

File

./flippy.module, line 671
Allows administrators to add previous/next pagers to any node type.

Code

function _flippy_use_pager($node) {
  if (!is_object($node)) {
    return FALSE;
  }
  return node_is_page($node) && variable_get('flippy_' . $node->type, NULL);
}