function subscriptions_content_views_data_alter in Subscriptions 2.0.x
Same name and namespace in other branches
- 7 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/
subscriptions_content.module, line 863 - Subscriptions to content events.
Code
function subscriptions_content_views_data_alter(&$data) {
// New comments.
$data['node']['subscriptions_content_links'] = [
'title' => t('Subscribe link'),
'help' => t('Display a link to subscribe to the node.'),
'field' => [
'handler' => 'subscriptions_content_views_handler_field_node_link',
],
];
}