You are here

function shoutbox_rules_shoutbox in Shoutbox 6.2

Same name and namespace in other branches
  1. 7.2 shoutbox_rules/shoutbox_rules.module \shoutbox_rules_shoutbox()
  2. 7 shoutbox_rules/shoutbox_rules.module \shoutbox_rules_shoutbox()

Implementation of hook_shoutbox().

File

shoutbox_rules/shoutbox_rules.module, line 38

Code

function shoutbox_rules_shoutbox($op, &$shout, &$a1 = NULL, $form_state = NULL) {

  // expose some shoutbox events to Rules
  if (in_array($op, array(
    'insert',
    'edit',
    'unpublish',
    'publish',
    'delete',
  ))) {
    rules_invoke_event('shout_' . $op, $user->uid, $shout);
  }
}