Skip to content
Snippets Groups Projects
Commit 1681bc16 authored by Angie Byron's avatar Angie Byron
Browse files

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

parent 5420371a
No related branches found
No related tags found
No related merge requests found
...@@ -8,38 +8,6 @@ function field_install() { ...@@ -8,38 +8,6 @@ function field_install() {
drupal_install_schema('field'); 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. * Implementation of hook_schema.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment