You are here

function _forward_show_on_entity in Forward 7.3

2 calls to _forward_show_on_entity()
forward_block_view in ./forward.module
Implements hook_block_view().
forward_entity_view in ./forward.module
Implements hook_entity_view().

File

./forward.module, line 1516
Allows forwarding of entities by email, and provides a record of how often each has been forwarded.

Code

function _forward_show_on_entity($entity_type, $entity, $bundle) {
  $show = user_access('access forward');
  if ($show) {
    $show = variable_get('forward_entity_' . $entity_type, FALSE);
  }
  if ($show) {
    $show = variable_get('forward_' . $entity_type . '_' . $bundle, FALSE);
  }
  return $show;
}