You are here

function _datereminder_node_output in Date Reminder 7

Same name and namespace in other branches
  1. 6.2 datereminder.module \_datereminder_node_output()
  2. 6 datereminder.module \_datereminder_node_output()

Add option to node allowing user to request a reminder.

1 call to _datereminder_node_output()
datereminder_node_view in ./datereminder.module
Implements hook_node_view().

File

./datereminder.module, line 217
Support for reminders for nodes with dates.

Code

function _datereminder_node_output(&$node, $type = 'node') {
  module_load_include('inc', 'datereminder', 'includes/defines');
  $output = '';
  if (empty($node->datereminder_enabled) || $node->datereminder_enabled < DATEREMINDER_TYPE_ALLOWED) {
    return $output;
  }
  $output = _datereminder_current_reminder_or_link($node, DATEREMINDER_IN_NODE);
  return $output;
}