You are here

function shoutbox_rules_token_values in Shoutbox 6.2

Implementation of hook_token_values().

File

shoutbox_rules/shoutbox_rules.module, line 10

Code

function shoutbox_rules_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'shout' || $type == 'all') {
    $values['shout'] = check_plain($object->shout);
    $values['shout'] = $object->shout;
    $values['shout-id'] = check_plain($object->shout_id);
    return $values;
  }
}