function publishcontent_views_data_alter in Publish Content 7
Same name and namespace in other branches
- 8 publishcontent.views.inc \publishcontent_views_data_alter()
- 6 publishcontent.module \publishcontent_views_data_alter()
Implements hook_views_data_alter().
Add items to the node table that are relevant to publishcontent.
File
- ./
publishcontent.module, line 509 - Add link to publish or unpublish a node, with access control based on the node type
Code
function publishcontent_views_data_alter(&$data) {
$data['node']['publishcontent'] = array(
'title' => t('Publish link'),
'help' => t('Display a link to publish the node.'),
'field' => array(
'handler' => 'publishcontent_views_handler_field_node_link',
),
);
}