You are here

public function HeartbeatFlagAttachmentPlugin::flagDefaults in Heartbeat 7

flagDefaults(). Defines the default flags.

Overrides HeartbeatFlagPlugin::flagDefaults

File

modules/heartbeat_plugins/plugins/flagattachment.inc, line 199

Class

HeartbeatFlagAttachmentPlugin
Class HeartbeatFlagAttachmentPlugin.

Code

public function flagDefaults() {
  $flags = array();

  // Exported flag: "I like".
  $flags['like'] = array(
    'content_type' => 'heartbeat_activity',
    'title' => 'I like',
    'global' => '0',
    'types' => array(),
    'flag_short' => 'I like this',
    'flag_long' => 'you like this',
    'flag_message' => '[heartbeat_activity:flag-like-count-linked] liked this',
    'unflag_short' => 'I don\'t like this',
    'unflag_long' => 'you don\'t like this',
    'unflag_message' => 'you don\'t like this',
    'unflag_denied_text' => '',
    'link_type' => 'toggle',
    'roles' => array(
      'flag' => array(
        '0' => '2',
      ),
      'unflag' => array(
        '0' => '2',
      ),
    ),
    'api_version' => 2,
  );
  return $flags;
}