You are here

function nodeorder_views_data_alter in Node Order 8

Same name and namespace in other branches
  1. 6 nodeorder.module \nodeorder_views_data_alter()
  2. 7 includes/views/nodeorder.views.inc \nodeorder_views_data_alter()

Implements hook_views_data_alter().

File

./nodeorder.views.inc, line 11
Views integration for nodeorder module.

Code

function nodeorder_views_data_alter(&$data) {

  // Taxonomy weight.
  $data['taxonomy_index']['weight'] = [
    'title' => t('Nodeorder'),
    'help' => t('The node weight in given term'),
    'field' => [
      'id' => 'standard',
      'click sortable' => TRUE,
      'label' => t('Nodeorder'),
    ],
    'sort' => [
      'id' => 'standard',
      'label' => t('Nodeorder'),
    ],
  ];
}