You are here

function publishcontent_views_data_alter in Publish Content 6

Same name and namespace in other branches
  1. 8 publishcontent.views.inc \publishcontent_views_data_alter()
  2. 7 publishcontent.module \publishcontent_views_data_alter()

Implements views_data_alter() to add items to the node table that are relevant to publishcontent.

File

./publishcontent.module, line 221
Add button to publish or unpublish a node, with access control based on the node type

Code

function publishcontent_views_data_alter(&$data) {

  // new comments
  $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',
    ),
  );
}