You are here

public function HeartbeatActivityCommentsPlugin::pluginAttachmentForm in Heartbeat 7

pluginAttachmentForm().

_values

Parameters

$form:

$component_type [buttons, content]:

Overrides HeartbeatBasePlugin::pluginAttachmentForm

File

modules/heartbeat_comments/plugins/activitycomments.inc, line 409
Defines activity comments.

Class

HeartbeatActivityCommentsPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function pluginAttachmentForm(&$form, $form_values, $component_type) {
  if ($component_type == 'buttons') {
    $form['activitycomments_node'] = array(
      '#type' => 'checkbox',
      '#default_value' => isset($form_values['settings'][$this->settings['plugin_name']]['activitycomments_node']) ? $form_values['settings'][$this->settings['plugin_name']]['activitycomments_node'] : array(),
      '#title' => t('Enable node comments for this activity template if a node is available'),
      '#weight' => 11,
    );
  }
}