public function HeartbeatShoutBoxPlugin::streamLoaded in Heartbeat 7
streamLoaded().
Overrides iHeartbeatPlugin::streamLoaded
File
- modules/
heartbeat_plugins/ plugins/ shoutbox.inc, line 81
Class
- HeartbeatShoutBoxPlugin
- Class HeartbeatShoutBoxPlugin.
Code
public function streamLoaded(HeartbeatStream $heartbeatStream) {
if (isset($heartbeatStream->config->settings['shoutbox']) && $heartbeatStream->config->settings['shoutbox']) {
// Load externals.
theme('shoutbox_external_files');
$output = drupal_get_form('shoutbox_add_form');
$heartbeatStream->prefix = drupal_render($output);
_shoutbox_js_config();
//$output = shoutbox_view(TRUE);
//$heartbeatStream->prefix = drupal_render($output);
}
}