I created a custom content type and made a nice view using table.
I then installed the latest views bonus pack and tried to change my view using the bonus grid and i received the following error message:

Fatal error: Call to undefined function theme_add_style() in D:\Program Files\xampp\htdocs\drupal\sites\all\modules\views_bonus\views_bonus_grid.module on line 15

Note: i re-installed the previous version of views bonus pack (5.10) and the bonus grid would not show up in my view (but i received no error message).

CommentFileSizeAuthor
#6 drupal_add_css.patch9.28 KBsimplymenotu

Comments

mcreature’s picture

also getting same message if using any grid or panels bonus views
setup with drupal 5.2 dev
MySQL database 5.0.27
PHP 5.2.0

mcreature’s picture

also getting

same message if using any grid or panels bonus views
setup with ....
Drupal 5.2 dev
MySQL database 5.0.27
PHP 5.2.0

talltim’s picture

Getting this too myself.

talltim’s picture

You can fix by changing line 15 to:

drupal_add_css(drupal_get_path('module', 'views_bonus') .'/views_bonus.css');

gracearoha’s picture

Title: Fatal Error » Thx for the fix

Great!

Thanks for the fix!

simplymenotu’s picture

Title: Thx for the fix » Patch for undefined function - theme_add_style
Status: Active » Needs review
StatusFileSize
new9.28 KB

Replace "theme_add_style" with "drupal_add_css" in the following files;

views_bonus_grid.module
views_bonus_panels_threecol_term.module
views_bonus_summary_combo.module

Tested and working with DRUPAL-5 branch: drupal, panel, views, views_bonus.

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community
simplymenotu’s picture

Assigned: Unassigned » simplymenotu
Status: Reviewed & tested by the community » Fixed

patch committed to CVS.

dawehner’s picture

can anyone try to build a running dev Version?
the 2columns + 1 on the top panel doesn´t work

Anonymous’s picture

Status: Fixed » Closed (fixed)