function simpleads_views_plugins in SimpleAds 7.2
Same name and namespace in other branches
- 7 includes/simpleads.integration.inc \simpleads_views_plugins()
Implements hook_views_plugins().
File
- ./
simpleads.views.inc, line 50 - SimpleAds Views.
Code
function simpleads_views_plugins() {
return array(
'style' => array(
//declare the views_json style plugin
'simpleads' => array(
'title' => t('SimpleAds'),
'help' => t('Displays advertisements in blocks.'),
'handler' => 'views_simpleads_plugin',
'theme' => 'views_simpleads',
'theme path' => drupal_get_path('module', 'simpleads') . '/templates',
'theme file' => 'views-simpleads.tpl.php',
'uses row plugin' => TRUE,
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
),
'row' => array(
//declare the unformatted row plugin
'unformatted' => array(
'title' => t('Unformatted'),
'help' => t('(Displays the unformatted data for each row from the views query with each row on a new line.'),
'handler' => 'views_plugin_row_unformatted',
'theme' => 'views_view_row_unformatted',
'uses fields' => TRUE,
'uses options' => TRUE,
'type' => 'normal',
),
),
);
}