You are here

function flag_heartbeat_message::options_form in Heartbeat 6.4

Same name and namespace in other branches
  1. 6.3 modules/flag_heartbeat/class.flag_heartbeat_message.inc \flag_heartbeat_message::options_form()
  2. 7 modules/heartbeat_plugins/plugins/flagattachment.inc \flag_heartbeat_message::options_form()

File

modules/flag_heartbeat/class.flag_heartbeat_message.inc, line 20
Class file for a heartbeat message flag

Class

flag_heartbeat_message
Implements a Heartbeat message flag.

Code

function options_form(&$form) {
  parent::options_form($form);
  $form['types'] = array(
    // A user flag doesn't support node types. (Maybe will support roles instead, in the future.)
    '#type' => 'value',
    '#value' => array(
      0 => 0,
    ),
  );
  $form['display']['show_on_heartbeat_message'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display link under heartbeat messages'),
    '#default_value' => $this->show_on_heartbeat_message,
    '#access' => empty($this->locked['show_on_heartbeat_message']),
  );
}