You are here

function simpleads_views_plugins in SimpleAds 7

Same name and namespace in other branches
  1. 7.2 simpleads.views.inc \simpleads_views_plugins()

Implements hook_views_plugins().

File

includes/simpleads.integration.inc, line 22
SimpleAds Integration with other contributed modules.

Code

function simpleads_views_plugins() {
  return array(
    'style' => array(
      //declare the views_json style plugin
      'simpleads' => array(
        'title' => t('SimpleAds'),
        'help' => t('Displays ads in block'),
        'handler' => 'views_simpleads_plugin',
        'theme' => 'views_simpleads',
        'theme path' => drupal_get_path('module', 'simpleads') . '/templates',
        'theme file' => 'views-simpleads.tpl.php',
        'uses row plugin' => FALSE,
        'uses fields' => TRUE,
        'uses options' => TRUE,
        'type' => 'normal',
      ),
    ),
  );
}