You are here

function captcha_update_2 in CAPTCHA 6

Same name and namespace in other branches
  1. 5.3 captcha.install \captcha_update_2()
  2. 6.2 captcha.install \captcha_update_2()

Implementation of hook_update_N()

File

./captcha.install, line 99

Code

function captcha_update_2() {
  $items = array();

  // insert some defaults
  $form_ids = array(
    'user_login',
    'user_login_block',
  );
  foreach ($form_ids as $form_id) {
    $items[] = update_sql("INSERT INTO {captcha_points} (form_id, module, type) VALUES ('{$form_id}', NULL, NULL)");
  }
  return $items;
}