You are here

function captcha_update_2 in CAPTCHA 5.3

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

Implementation of hook_update_N()

File

./captcha.install, line 100
Installation file for the core CAPTCHA module.

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;
}