You are here

public function HeartbeatActivityStatusPlugin::pluginStreamForm in Heartbeat 7

pluginStreamForm().

Overrides HeartbeatBasePlugin::pluginStreamForm

File

modules/heartbeat_plugins/plugins/activitystatus.inc, line 110

Class

HeartbeatActivityStatusPlugin
Class HeartbeatActivityStatusPlugin.

Code

public function pluginStreamForm(&$form, &$form_state) {
  $form['settings']['fs_activity_status'] = array(
    '#type' => 'fieldset',
    '#title' => t('Prepend a user status form to the stream (like tweets)'),
    '#collapsible' => TRUE,
    '#collapsed' => TRUE,
    'show_status_form' => array(
      '#type' => 'radios',
      '#options' => array(
        '0' => t('None'),
      ) + heartbeat_templates_names(),
      '#default_value' => isset($form_state['item']->settings['show_status_form']) ? $form_state['item']->settings['show_status_form'] : 0,
    ),
  );
}