You are here

function answers_lock_question in Answers 6.2

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

Lock a question.

Parameters

$question: A fully loaded question node.

2 calls to answers_lock_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 92
Question locking functions for the 'Answers' module

Code

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