function uc_addresses_views_plugins in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 views/uc_addresses.views.inc \uc_addresses_views_plugins()
Implements hook_views_plugins().
File
- views/
uc_addresses.views.inc, line 381 - Hook implementations for the Views module.
Code
function uc_addresses_views_plugins() {
return array(
'row' => array(
'uc_addresses' => array(
'title' => t('Ubercart Addresses address'),
'help' => t('Display the address with standard address view.'),
'handler' => 'uc_addresses_views_plugin_row_address_view',
'path' => drupal_get_path('module', 'uc_addresses') . '/views',
'base' => array(
'uc_addresses',
),
// only works with 'uc_addresses' as base.
'uses options' => TRUE,
'type' => 'normal',
),
),
'access' => array(
'uc_addresses_views_access' => array(
'title' => t('Ubercart Addresses Views Access'),
'help' => t('Check for address access based on a user ID or address ID argument.'),
'handler' => 'uc_addresses_views_access',
'uses options' => TRUE,
'path' => drupal_get_path('module', 'uc_addresses') . '/views',
),
),
'argument validator' => array(
'uc_addresses_address_access' => array(
'title' => t('Address access'),
'parent' => 'views_plugin_argument_validate',
'handler' => 'uc_addresses_views_plugin_argument_address_access',
'path' => drupal_get_path('module', 'uc_addresses') . '/views',
),
'uc_addresses_user_address_access' => array(
'title' => t('User: address access'),
'parent' => 'views_plugin_argument_validate_user',
'handler' => 'uc_addresses_views_plugin_argument_user_address_access',
'path' => drupal_get_path('module', 'uc_addresses') . '/views',
),
),
);
}