You are here

function answers_lock_question in Answers 7.2

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

File

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

Code

function answers_lock_question($question) {
  $lang = field_language('node', $question, 'field_question_locked_p');
  $question->field_question_locked_p[$lang][0]['value'] = 1;
  node_save($question);
}