function answers_best_answer_best_answer_flag_api3 in Answers 7.4
Wrapper for flag 3.x hook_flag_default_flags().
1 call to answers_best_answer_best_answer_flag_api3()
- answers_best_answer_flag_default_flags in answers_best_answer/
answers_best_answer.module - Implements hook_flag_default_flags().
File
- answers_best_answer/
answers_best_answer.module, line 224 - Support selection of 'Best Answers' for the 'Answers' module.
Code
function answers_best_answer_best_answer_flag_api3() {
$flag = array(
'entity_type' => 'node',
'title' => t('Best !Answer', answers_translation()),
'global' => TRUE,
'types' => array(
0 => 'answers_answer',
),
'flag_short' => 'Best',
'flag_long' => t('Select as the best !answer', answers_translation()),
'flag_message' => t('Selected as the best !answer.', answers_translation()),
'unflag_short' => t('Unbest'),
'unflag_long' => t('Unselect as the best !answer', answers_translation()),
'unflag_message' => t('Unselected as the best !answer.', answers_translation()),
'unflag_denied_text' => '',
'link_type' => 'toggle',
'weight' => 0,
'show_in_links' => array(
'full' => 0,
'teaser' => 0,
'rss' => 0,
'search_index' => 0,
'search_result' => 0,
'token' => 0,
),
'show_as_field' => 0,
'show_on_form' => FALSE,
'access_author' => '',
'show_contextual_link' => 0,
'i18n' => 0,
'module' => 'answers_best_answer',
'locked' => array(
'name' => 'name',
'global' => 'global',
'types' => 'types',
'show_on_page' => 'show_on_page',
'show_on_form' => 'show_on_form',
'status' => 'status',
),
'show_on_page' => FALSE,
'status' => TRUE,
'api_version' => 3,
);
return $flag;
}