You are here

function shoutbox_invoke in Shoutbox 6.2

Same name and namespace in other branches
  1. 7.2 shoutbox.module \shoutbox_invoke()
  2. 7 shoutbox.module \shoutbox_invoke()

Helper function to invoke modules that implement hook_shoutbox This is required to preserve the reference of variables See shoutbox.api.php for more details

9 calls to shoutbox_invoke()
shoutbox_add_form in ./shoutbox.module
Generates form for adding shouts.
shoutbox_add_form_submit in ./shoutbox.module
Handles submission of a shout. Handles both ajax submission and regular form submission.
shoutbox_delete_shout in ./shoutbox.module
Delete a shout
shoutbox_display_posts in ./shoutbox.module
Output existing shoutbox posts as html.
shoutbox_edit_form_submit in ./shoutbox.pages.inc
Handle the edit form submission

... See full list

File

./shoutbox.module, line 762
Shout box module displays a block for users to create short messages for the whole site. Uses AHAH to update the database and display content.

Code

function shoutbox_invoke($op, &$shout, &$a1 = NULL, $form_state = NULL) {
  $hook = 'shoutbox';
  foreach (module_implements($hook) as $module) {
    $function = $module . '_' . $hook;
    $function($op, $shout, $a1, $form_state);
  }
}