Dear Forum,
I am rewriting a module to allow me to add elertz to drupal nodes.
Currently my module works fine
$links = array();
if ($type == 'node' && $node->type == 'story' || $node->type == 'page' || $node->type =='blog' ) {
if (arg(0) != 'story' || arg(1) != $node->uid) {
$links['elertz_link_url'] = array(
'title' => t($elertz_url_title),
'query' => $querystring,
'href' => $elertz_alert_url,
because I am building a standard http://www.hostname.com/ link however now I need to build a
link like this:
Now I couldn't get hook link to work.
I also need to add this external include to the page to get the link to work
addSubJS();
and I was thinking of drupal_add_js but i read that won't load external javascripts
Does any one have any ideas they would be appreciated
Thank you
David
Comments
whoops I should have
whoops I should have previewed that post as the forum has turned them into links!
The link i am tring to get to work looks like this:
href="JavaScript:Subscribe(818, 76,993,'Drupal site has been updated. Node 2','','');">Subscribe!!!
and the external script I am trying to access looks like this:
src="http://www.elertz.com/flashclient/subscribe.js" type="text/javascript">
hmm
this is a tricky one i guess