You are here

function _datereminder_make_anonymous_link in Date Reminder 7

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

File

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

Code

function _datereminder_make_anonymous_link($node) {
  if (variable_get('datereminder_anonymous_link', false)) {
    $remanon = array(
      'title' => _datereminder_anonymous_link($node),
      'html' => true,
    );
    $remanon = array(
      'reminder_anon' => $remanon,
    );
    $class = array();
    $class[] = 'links';
    $class[] = 'inline';
    $attributes = array(
      'class' => $class,
    );
    $remlinks = array(
      '#links' => $remanon,
      '#attributes' => $attributes,
      '#theme' => 'links__node__reminder',
    );
    $node->content['links']['reminder'] = $remlinks;
  }
}