Now all modules are in core modules folder

This commit is contained in:
Manuel Cillero 2017-08-08 12:14:45 +02:00
parent 5ba1cdfa0b
commit 05b6a91b0c
1907 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,59 @@
<?php
/**
* @file
* Implementation of hook_install().
*/
function number_install() {
drupal_load('module', 'content');
content_notify('install', 'number');
}
/**
* Implementation of hook_uninstall().
*/
function number_uninstall() {
drupal_load('module', 'content');
content_notify('uninstall', 'number');
}
/**
* Implementation of hook_enable().
*
* Notify content module when this module is enabled.
*/
function number_enable() {
drupal_load('module', 'content');
content_notify('enable', 'number');
}
/**
* Implementation of hook_disable().
*
* Notify content module when this module is disabled.
*/
function number_disable() {
drupal_load('module', 'content');
content_notify('disable', 'number');
}
function number_update_last_removed() {
return 5;
}
/**
* Rename old decimal fields, which were really floats, to float
*/
function number_update_6000() {
if ($abort = content_check_update('number')) {
return $abort;
}
$ret = array();
drupal_load('module', 'content');
$ret[] = update_sql("UPDATE {". content_field_tablename() ."} SET type='number_float' WHERE type = 'number_decimal'");
content_clear_type_cache();
return $ret;
}