You are here

function answers_notifications_flag_default_flags in Answers 7.4

Implements hook_flag_default_flags().

File

answers_notifications/includes/answers_notifications.flag_default.inc, line 11
Hooks for flags in answers_notifications.

Code

function answers_notifications_flag_default_flags() {
  $flags = array();

  // Exported flag: "Subscribe".
  $flags['subscribe_answers_notifications'] = array(
    'entity_type' => 'node',
    'title' => 'Subscribe',
    'global' => '0',
    'types' => array(
      0 => 'answers_question',
    ),
    'flag_short' => 'Subscribe',
    'flag_long' => '',
    'flag_message' => 'You have subscribed',
    'unflag_short' => 'Unsubscribe',
    'unflag_long' => '',
    'unflag_message' => 'You have unsubscribed',
    'unflag_denied_text' => '',
    'link_type' => 'toggle',
    'weight' => 0,
    'show_on_form' => TRUE,
    'access_author' => '',
    'show_on_teaser' => 0,
    'show_contextual_link' => 0,
    'i18n' => 0,
    'module' => 'answer_notifications',
    'locked' => array(
      'name' => 'name',
    ),
    'api_version' => 3,
    'status' => TRUE,
    'import_roles' => array(
      'flag' => array(
        0 => '2',
      ),
      'unflag' => array(
        0 => '2',
      ),
    ),
    'show_in_links' => array(
      'full' => TRUE,
    ),
  );
  return $flags;
}