Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi folks,
I like to add an argument to the url with onclick.. what's the right way to solve this? I'm new on the js and drupal.. :-(
I think I have to put something in
'#attributes' => array('onclick' => '$file_path'), ..... right?
But what exactly? url() or goto or href.. Can someone help me?
Cheers Apfel007
Comments
Comment #1
Apfel007 CreditAttribution: Apfel007 commentedIs there any limitation on it?
If I insert '#href' = $path, nothing happens.. do someone work with it?