I have placed the code bellow into a zen sub-theme and it does not work, when I place it in its own theme it works. What it does is takes any node content that has a sticky to the top of the page, and makes a slide show out of them using jquery. I believe the problem has something to do with running the code from a subtheme.

CommentFileSizeAuthor
sticky_rotate.txt1.91 KBhdfellows

Comments

trampjuice’s picture

I have a similar problem.

I use JQuery in ajax callbacks on my multistep form and I get the following error when I used a zen subtheme.

Warning: Missing argument 2 for eviction_form(), called in C:\xampp\htdocs\xxxxx.com\includes\theme.inc on line 894 and defined in eviction_form() (line 21 of C:\xampp\htdocs\xxxxx.com\sites\all\modules\webline_notices\webline_notices.module).

But when I used the main zen theme, all works prefectly well.

line 21 - function eviction_form($form, &$form_state) is my form function prototype.

barraponto’s picture

Component: Miscellaneous » Documentation
Assigned: hdfellows » Unassigned
Category: bug » support
Priority: Critical » Normal

@hdfellows: How are you adding the js?

@trampjuice: Custom module? Or contributed one? It would be nice if you showed how the js was added, and the js code itself.

Both of you will benefit from reading http://drupal.org/node/171213.

trampjuice’s picture

Hi In work at the mo so have to keep it short. Its a custom commerical module and I was simply using the Drupal 7 Form API AJAX callback techniques for a multi step form - not JQuery directly in itself in any way.
I would guess this might be reproducable by using the D7 examples module, in a custom zen subtheme as this also contains a D7 multistep form.
My code is that straightforward as in the exmaple - i.e. ajax is only used to replace the content of divs in a div wrapper callbacks in am multistep form.
I have abandoned zen and moved to fusion as a theme so its not an issue for me at the mo.

johnalbin’s picture

Status: Active » Closed (fixed)

closing old support issues