You are here

function autocomplete_widgets_install in Autocomplete Widgets for Text and Number Fields 6

Implementation of hook_install().

File

./autocomplete_widgets.install, line 11
Module installation/uninstallation hooks.

Code

function autocomplete_widgets_install() {

  // Make sure this module is loaded after CCK Text/Number fields.
  // See autocomplete_widgets_form_alter().
  db_query("UPDATE {system} SET weight = 1 WHERE name = 'autocomplete_widgets'");

  // Notify content module when this module is installed.
  drupal_load('module', 'content');
  content_notify('install', 'autocomplete_widgets');
}