merci_reservation.views.inc in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
File
merci_reservation/includes/views/merci_reservation.views.inc
View source
<?php
function merci_reservation_views_data_alter(&$data) {
$data['merci_reservation']['operations'] = array(
'field' => array(
'title' => t('Operations links'),
'help' => t('Display all the available operations links for the order.'),
'handler' => 'merci_reservation_handler_field_operations',
),
);
$data['merci_reservation']['view_checkout'] = array(
'field' => array(
'title' => t('Link'),
'help' => t('Provide a simple link to the administrator view of the order.'),
'handler' => 'merci_reservation_handler_field_order_link',
),
);
$data['merci_reservation']['title'] = array(
'title' => t('Title'),
'help' => t('The content title.'),
'field' => array(
'handler' => 'merci_reservation_handler_field_title',
'click sortable' => TRUE,
'link_to_entity default' => TRUE,
),
'sort' => array(
'handler' => 'views_handler_sort',
),
'filter' => array(
'handler' => 'views_handler_filter_string',
),
'argument' => array(
'handler' => 'views_handler_argument_string',
),
);
$data['commerce_product']['current_checkout'] = array(
'field' => array(
'title' => t('Checkout'),
'help' => t('Provide a simple link to a current checkout for the item if it exists.'),
'handler' => 'merci_reservation_handler_field_current_checkout',
),
);
}