You are here

function answers_unlock_question in Answers 6.2

Same name and namespace in other branches
  1. 7.2 includes/answers.lock.inc \answers_unlock_question()
  2. 7.3 includes/answers.lock.inc \answers_unlock_question()

Unlock a question.

Parameters

$question: A fully loaded question node.

2 calls to answers_unlock_question()
answers_reset_question_lock in includes/answers.lock.inc
Reset the question lock for a single question
answers_reset_question_locks in includes/answers.lock.inc
Cycle through all questions and reset their locks.

File

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

Code

function answers_unlock_question($question) {
  $question->field_question_locked_p[0]['value'] = FALSE;
  node_save($question);
}