It looks like you cant use drupal_get_path() in hook exit... I have the following printed at the bottom of my page.

Fatal error: Call to undefined function drupal_get_path() in .../modules/contrib/clicktale/clicktale.module

Comments

mrfelton’s picture

See http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo... for why.

See http://drupal.org/node/570060 for a similar issue in another module.

I think a patch like the one in http://drupal.org/node/570060#comment-2460850 would be best here.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new2.35 KB

Attached patch resolves the issue. I also had to make an alteration in clicktale.helpers.inc to callt get_t() so that t() can be used properly in hook_exit().

cableman0408’s picture

Assigned: Unassigned » cableman0408
Status: Needs review » Closed (fixed)

The patch have been add to the development branch :-)