You are here

function amazon_views_plugins in Amazon Product Advertisement API 7

Same name and namespace in other branches
  1. 6 includes/amazon.views.inc \amazon_views_plugins()
  2. 7.2 includes/amazon.views.inc \amazon_views_plugins()

Implementation of hook_views_plugins

Related topics

File

includes/amazon.views.inc, line 22
Provide views data and handlers for amazon.module

Code

function amazon_views_plugins() {
  return array(
    'module' => 'amazon',
    // This just tells our themes are elsewhere.
    'row' => array(
      'amazon_item' => array(
        'title' => t('Amazon item'),
        'help' => t('Display the item as a fully themed Amazon product.'),
        'handler' => 'amazon_views_plugin_row_amazon_view',
        'theme' => 'amazon_views_view_row_item',
        'theme file' => 'amazon.theme.inc',
        'theme path' => drupal_get_path('module', 'amazon'),
        'base' => array(
          'amazon_item',
        ),
        'uses options' => TRUE,
        'type' => 'normal',
        'parent' => 'views_plugin_row',
      ),
    ),
  );
}