You are here

function answers_lock_example_install in Answers 7.4

Implements hook_install().

File

answers_lock_example/answers_lock_example.install, line 11
An example module illustrating how to use the answers_lock api.

Code

function answers_lock_example_install() {
  variable_set('answers_lock_example_lock_questions_p', 0);
  foreach (answers_all_questions() as $question) {
    answers_question_lock_set($question, 'answers_lock_example');
  }
}