Nice module - thanks!

I got such a message in Drupal 5.9, when I tried to log-out:
Fatal error: Call to undefined function drupal_add_css() in .../modules/blockquote/blockquote.module on line 80

CommentFileSizeAuthor
#3 blockquote_menu.patch982 bytesjennycita

Comments

zeta ζ’s picture

Status: Active » Postponed (maintainer needs more info)

Hi Andrzej7,

Glad you like it :-)

when I tried to log-out always makes me ask, Have you cleared the cache?

Is this consistently reproducible? Obviously drupal_add_css should be defined, in D5 & D6.

Do you have a live example on the internet?

Nick

zeta ζ’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Couldn’t hold my breath any longer…

jennycita’s picture

Status: Closed (fixed) » Active
StatusFileSize
new982 bytes

I'm getting this error as well... found this similar issue. The fix is moving the drupal_add_css call into hook_menu(!$may_cache) instead of hook_init. I've attached a patch.

zeta ζ’s picture

Status: Active » Closed (won't fix)

Firstly, sorry for the delay – I’ve been out of the loop for a while.

This is caused by a difference between D5 & D6. The patch will cause an error for D6, but can be used for D5. Blockquote is correct for D6 as shown in http://api.drupal.org/api/function/hook_init .

As D7 is close, and we are about to lose D5, I have amended the project page to no longer mention D5.

Thanks for finding http://drupal.org/node/115901#comment-504918 .