Closed (fixed)
Project:
Rotor Banner
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
4 Dec 2009 at 20:25 UTC
Updated:
17 Dec 2009 at 20:50 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| rotor.views_default.zip | 1.08 KB | richard35_2002 | |
| rotor.views_.zip | 1.3 KB | richard35_2002 | |
| add-views.jpg | 5.33 KB | richard35_2002 |
Comments
Comment #1
richard35_2002 commentedComment #2
mrfelton commentedSorry, but I don't understand what you are getting at.
Comment #3
richard35_2002 commentedI 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.
Comment #4
richard35_2002 commented