You are here

function pm_views_data_alter in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 includes/views/pm.views.inc \pm_views_data_alter()
  2. 7.2 includes/views/pm.views.inc \pm_views_data_alter()

Implements hook_views_data_alter().

File

includes/views/pm.views.inc, line 11
Views definitions for pm module.

Code

function pm_views_data_alter(&$data) {
  $data['node']['pm_handler_area_addcontent'] = array(
    'title' => t('PM Add Content Link'),
    'help' => t('Provides a link to add new content of the specified type to users with permissions to do so.'),
    'area' => array(
      'handler' => 'pm_handler_area_addcontent',
      'group' => t('Drupal PM'),
    ),
  );
  $data['node']['pm_handler_field_operation'] = array(
    'title' => t('PM Operations'),
    'help' => t('Exposes operations that could be performed on the given node.'),
    'field' => array(
      'handler' => 'pm_handler_field_operation',
      'group' => t('Drupal PM'),
    ),
  );
}