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.
Comments
Comment #1
walker2238 commentedAlso 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()?
Comment #2
stongo commentedFixed 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.