You are here

function commerce_backoffice_content_views_data_alter in Commerce Backoffice 7

Implements hook_views_data_alter().

File

includes/views/commerce_backoffice_content.views.inc, line 11
Views plugin handlers.

Code

function commerce_backoffice_content_views_data_alter(&$data) {

  // Add the node filter that filters by node types with product reference fields.
  $data['node']['non_product_display_node_type'] = array(
    'title' => t('Non product display content types'),
    'help' => t('Filters by the content type but only shows non product displays content types as options.'),
    'real field' => 'type',
    'filter' => array(
      'handler' => 'commerce_backoffice_content_filter_node_type',
    ),
  );
  $data['views_entity_node']['operations_dropbutton'] = array(
    'field' => array(
      'title' => t('Operations links (Dropbutton)'),
      'help' => t('Display the available operations links for the node in a dropbutton.'),
      'handler' => 'commerce_backoffice_handler_field_node_operations',
    ),
  );
  $data['node']['term_node_tid_multiple'] = array(
    'title' => 'Has taxonomy terms (Multiple)',
    'help' => 'Display content if it has one of (or all of) the selected terms.',
    'filter' => array(
      'handler' => 'commerce_backoffice_handler_filter_term_node_tid',
      'product display' => FALSE,
    ),
  );
}