Commit 1681bc16 authored by webchick's avatar webchick

#372376 by yched: Remove uninstall/disable hooks from required field.module.

parent 5420371a
......@@ -8,38 +8,6 @@ function field_install() {
drupal_install_schema('field');
}
/**
* Implementation of hook_uninstall().
*/
function field_uninstall() {
drupal_uninstall_schema('field');
}
/**
* Implementation of hook_enable().
*/
function field_enable() {
// Make sure old data is emptied out of the caches, since it
// may no longer be valid since the module was last enabled,
// especially if not all the same field modules are enabled
// as before. Especially needed during updates.
module_load_include('inc', 'field', 'field.crud');
module_load_include('inc', 'field', 'field.info');
cache_clear_all('*', 'cache_field', TRUE);
field_cache_clear(TRUE);
}
/**
* Implementation of hook_disable().
*/
function field_disable() {
// Make sure old data is emptied out of the caches, since it
// may no longer be valid when the module is re-enabled.
module_load_include('inc', 'field', 'field.crud');
cache_clear_all('*', 'cache_field', TRUE);
field_cache_clear(TRUE);
}
/**
* Implementation of hook_schema.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment