You are here

function answers_best_answer_flag_default_flags in Answers 7.4

Implements hook_flag_default_flags().

Defines default flag for marking the best answer for a question.

Test which version of flags is being used and define the flag appropriately.

File

answers_best_answer/answers_best_answer.module, line 211
Support selection of 'Best Answers' for the 'Answers' module.

Code

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

  // Exported flag: "Best Answer".
  $flags['best_answer'] = FLAG_API_VERSION == 3 ? answers_best_answer_best_answer_flag_api3() : answers_best_answer_best_answer_flag_api2();
  return $flags;
}