Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 2193

Use it for the mechanism that allows to extends module's functionality without editing its code.

2
votes
To answer your question you could use menu_get_object() inside hook_html_head_alter() to get the node object, as in $node = menu_get_object();. As for solving the actual problem it would probably be …
answered Aug 16 '12 by Madis
2
votes
BetaRide gave you some good links and generic suggestions already, here's some code to help you get a quicker start: function mymodule_node_presave($node) { //drupal_set_message('<pre>'.var_export( …
answered Jan 20 '12 by Madis
3
votes
1) The suggested hook_link_alter() (in your linked question) does not exist in Drupal 7 so it doesn't work like you already found out. On the API page there's hook_node_view_alter() being mentioned wh …
answered May 7 '12 by Madis
1
vote
You need to implement hook_mail() in your custom module and then call drupal_mail() in your page callback function to get the result you want. You should save your table html in the $params array that …
answered Feb 8 '12 by Madis
2
votes
If you simply want to add the 'active' class to a menu item you could do it in the code before printing the menu. If you want the menu item to also act like an active item you could use menu_tree_set_ …
answered Jan 21 '12 by Madis
3
votes
Other modules aren't generally programmed to be aware of your custom additions and don't know where/how you want to save the data. If you add fields via hook_form_alter() then you should also add your …
answered May 2 '12 by Madis
4
votes
Unset the destination before calling drupal_goto(): unset($_GET['destination']); drupal_goto('PATH/TO/SSO-SERVER-LOGIN-PAGE.ASPX', array('external' => TRUE)); Another option would be to code the re …
answered Aug 17 '12 by Madis
22
votes
$form['#submit'] stores an array of form submit handlers. With the code you provided you're overwriting it by adding only your own. To get the result you want you should add your submit handler as the …
answered Dec 31 '11 by Madis