function uc_order_views_plugins in Ubercart 7.3
Implements hook_views_plugins().
File
- uc_order/
views/ uc_order.views.inc, line 713 - Views hooks and callback registries.
Code
function uc_order_views_plugins() {
return array(
'row' => array(
'uc_order_invoice' => array(
'title' => t('Invoice'),
'help' => t('Display the order with standard invoice view.'),
'handler' => 'uc_order_plugin_row_invoice',
'theme' => 'uc_order_view_row_invoice',
'theme path' => drupal_get_path('module', 'uc_order') . '/views',
'base' => array(
'uc_orders',
),
// only works with 'uc_orders' as base.
'type' => 'normal',
),
),
'argument validator' => array(
'user_or_permission' => array(
'title' => t('Current user or user has permission'),
'handler' => 'uc_order_plugin_argument_validate_user_perm',
),
),
);
}