You are here

function answers_reset_question_lock in Answers 7.3

Same name and namespace in other branches
  1. 6.2 includes/answers.lock.inc \answers_reset_question_lock()

Reset the question lock for a single question.

File

includes/answers.lock.inc, line 55
Question locking functions for the 'Answers' module.

Code

function answers_reset_question_lock($question) {
  $modules = module_implements('answers_lock_question_p');
  if (answers_lock_question_p($question, $modules)) {
    answers_lock_question($question);
  }
  else {
    answers_unlock_question($question);
  }
}