? extend_fasttoggle_hook.patch Index: fasttoggle.toggle.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/fasttoggle/Attic/fasttoggle.toggle.inc,v retrieving revision 1.1.2.2 diff -u -p -r1.1.2.2 fasttoggle.toggle.inc --- fasttoggle.toggle.inc 8 Nov 2008 11:38:19 -0000 1.1.2.2 +++ fasttoggle.toggle.inc 3 Feb 2009 00:47:19 -0000 @@ -20,6 +20,9 @@ function fasttoggle_node_option($node, $ // Save the node. $node->$option = key($options[$option]); node_save($node); + + // Let other modules respond. + module_invoke_all('fasttoggle_toggle', 'node', $node, $option); // Output the new status for the updated link text on AJAX changes if (isset($_POST['javascript']) && $_POST['javascript']) { @@ -77,6 +80,9 @@ function fasttoggle_user_option($user, $ if (isset($_POST['confirm']) && $_POST['confirm']) { $array = array($option => !$user->$option); $user = user_save($user, $array); + + // Let other modules respond. + module_invoke_all('fasttoggle_toggle', 'user', $user, $option); // Output the new option for the updated link text on AJAX changes if (isset($_POST['javascript']) && $_POST['javascript']) { @@ -132,6 +138,9 @@ function fasttoggle_comment_option($comm if (isset($_POST['confirm']) && $_POST['confirm']) { $comment->$option = !$comment->$option; comment_save((array)$comment); + + // Let other modules respond. + module_invoke_all('fasttoggle_toggle', 'comment', $comment, $option); // Output the new status for the updated link text on AJAX changes if (isset($_POST['javascript']) && $_POST['javascript']) {