You are here

function ggroup_views_data_alter in Subgroup (Graph) 1.0.x

Implements hook_views_data_alter().

File

./ggroup.views.inc, line 25
Views alterations for group_graph.

Code

function ggroup_views_data_alter(array &$data) {
  $data['group_content_field_data']['group_id_depth'] = [
    'help' => t('Group id with depth implemented by subgroups'),
    'argument' => [
      'title' => t('Has parent group ID (with depth)'),
      'id' => 'group_id_depth',
    ],
  ];
}