You are here

function shoutbox_invoke in Shoutbox 7

Same name and namespace in other branches
  1. 6.2 shoutbox.module \shoutbox_invoke()
  2. 7.2 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.

8 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.
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 1053
Shoutbox 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);
  }
}