You are here

function views_current_path_views_data_alter in Views Current Path (Global: Current Path) 8

Implements hook_views_data_alter().

File

./views_current_path.views.inc, line 6

Code

function views_current_path_views_data_alter(array &$data) {
  $data['views']['current_path'] = array(
    'title' => t('Current Path'),
    'group' => t('Global'),
    'help' => t('The path of the page currently being viewed.'),
    'field' => array(
      'title' => t('Current path'),
      'id' => 'current_path',
    ),
  );
}