You get this error if the share sub module isn't installed. Might want to check check if it's set.

Comments

walker2238’s picture

Also just thought I'd add my two cents about the issue you commented in page--external.tpl.php in regards to the JS file not working.

What about adding it in hook_preprocess_page()?

stongo’s picture

Status: Active » Closed (fixed)

Fixed undefined variable and committed
The JS file for addtoany cannot be added using the function drupal_add_js() from any hook unfortunately - it breaks the button. I checked out the addtoany module and there is another way to add the js file from a module, but it is rather complicated and I really need to read it over again.