You are here

function subscriptions_content_views_data_alter in Subscriptions 7

Same name and namespace in other branches
  1. 2.0.x subscriptions_content/subscriptions_content.module \subscriptions_content_views_data_alter()

Implements hook_views_data_alter() to add items to the node table that are relevant to subscriptions_content.

File

./subscriptions_content.module, line 857
Subscriptions to content events

Code

function subscriptions_content_views_data_alter(&$data) {

  // new comments
  $data['node']['subscriptions_content_links'] = array(
    'title' => t('Subscribe link'),
    'help' => t('Display a link to subscribe to the node.'),
    'field' => array(
      'handler' => 'subscriptions_content_views_handler_field_node_link',
    ),
  );
}