Add views for rotor banner using module views.

1 - Put this in rotor.info in your modules/rotor directory:
dependencies[] = views

2 - Put this in rotor.module in your modules/rotor directory:
/**
* Implementation of hook_views_api().
*/
function rotor_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'rotor'),
//'path' => drupal_get_path('module', 'rotor') . '/includes',
);
}

3 - Copy files rotor.views.inc and rotor.views_default.inc for modules/rotor/includes folder.

Note: The image add-views.jpg shows the views.

Comments

richard35_2002’s picture

Status: Active » Needs review
mrfelton’s picture

Status: Needs review » Active

Sorry, but I don't understand what you are getting at.

richard35_2002’s picture

Status: Active » Needs review

I want to create a block as shown in figure http://drupal.org/files/issues/add-views.jpg with rotor module, that when you click on the symbol >> allows me to go to the banner below and when you click << go to previous.

richard35_2002’s picture

Status: Needs review » Closed (fixed)