Hi everybody.

I want to make a href link in my drupal site which links to some php function... But this example code doesn't work..

href="/drupal/?q=node/14?init=true">Click Me

 if(isset($_GET['init'])) {
myFunction();
}
function myfunction() {
print 'You called the function';
}

Comments

sriharsha’s picture

where did you write the code within the module?

bostuh’s picture

i wrote it in the default view template..