You are here

function answers_update_7201 in Answers 7.2

Same name and namespace in other branches
  1. 7.3 answers.install \answers_update_7201()

Make sure that custom question fields have values set. If one doesn't, set the default value.

File

./answers.install, line 34

Code

function answers_update_7201() {
  $result = db_query("SELECT * from {node} WHERE type = 'question';");
  foreach ($result as $question) {
    $question = node_load($question->nid);
    _answers_set_default_question_field_values($question);
  }
  return array();
}