You are here

function nodeorder_views_data_alter in Node Order 6

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

Implementation of hook_views_data_alter().

File

./nodeorder.module, line 854
Nodeorder module.

Code

function nodeorder_views_data_alter(&$data) {

  // taxonomy weight
  $data['term_node']['weight_in_tid'] = array(
    'title' => t('Weight in tid'),
    'help' => t('The term weight in tid field'),
    'field' => array(
      'handler' => 'views_handler_field',
      'click sortable' => TRUE,
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );
}