2 // $Id: number.install,v 1.28.2.6 2008/10/04 13:14:22 karens Exp $
6 * Implementation of hook_install().
8 function number_install() {
9 drupal_load('module', 'content');
10 content_notify('install', 'number');
14 * Implementation of hook_uninstall().
16 function number_uninstall() {
17 drupal_load('module', 'content');
18 content_notify('uninstall', 'number');
22 * Implementation of hook_enable().
24 * Notify content module when this module is enabled.
26 function number_enable() {
27 drupal_load('module', 'content');
28 content_notify('enable', 'number');
32 * Implementation of hook_disable().
34 * Notify content module when this module is disabled.
36 function number_disable() {
37 drupal_load('module', 'content');
38 content_notify('disable', 'number');
41 function number_update_last_removed() {
46 * Rename old decimal fields, which were really floats, to float
48 function number_update_6000() {
49 if ($abort = content_check_update('number')) {
55 drupal_load('module', 'content');
56 $ret[] = update_sql("UPDATE {". content_field_tablename() ."} SET type='number_float' WHERE type = 'number_decimal'");
58 content_clear_type_cache();