public function HeartbeatShoutBoxPlugin::pluginStreamForm in Heartbeat 7
pluginStreamForm().
Overrides HeartbeatBasePlugin::pluginStreamForm
File
- modules/
heartbeat_plugins/ plugins/ shoutbox.inc, line 102
Class
- HeartbeatShoutBoxPlugin
- Class HeartbeatShoutBoxPlugin.
Code
public function pluginStreamForm(&$form, &$form_state) {
$form['settings']['fs_shoutbox'] = array(
'#type' => 'fieldset',
'#title' => t('Shoutbox'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
'shoutbox' => array(
'#type' => 'checkbox',
'#title' => t('Prepend a shoutbox form to the stream'),
'#default_value' => isset($form_state['item']->settings['shoutbox']) ? $form_state['item']->settings['shoutbox'] : 0,
),
);
}