You are here

function publishcontent_views_data_alter in Publish Content 8

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

Implements hook_views_data_alter().

File

./publishcontent.views.inc, line 11
Contains views configurations.

Code

function publishcontent_views_data_alter(array &$data) {
  $data['node']['publishcontent'] = [
    'title' => t('Publish/Unpublish'),
    'field' => [
      'title' => t('Publish/Unpublish'),
      'help' => t('Link to Publish or Unpublish node.'),
      'id' => 'publishcontent_node',
    ],
  ];
}