function content_notify in Content Construction Kit (CCK) 6
Same name and namespace in other branches
- 6.3 content.module \content_notify()
- 6.2 content.module \content_notify()
Modules notify Content module when uninstalled, disabled, etc.
@TODO figure out exactly what needs to be done by content module when field modules are installed, uninstalled, enabled or disabled.
Parameters
string $op: the module operation: uninstall, install, enable, disable
string $module: the name of the affected module.
32 calls to content_notify()
- fieldgroup_disable in modules/fieldgroup/ fieldgroup.install 
- Implementation of hook_disable().
- fieldgroup_enable in modules/fieldgroup/ fieldgroup.install 
- Implementation of hook_enable().
- fieldgroup_install in modules/fieldgroup/ fieldgroup.install 
- Implementation of hook_install().
- fieldgroup_uninstall in modules/fieldgroup/ fieldgroup.install 
- Implementation of hook_uninstall().
- nodereference_disable in modules/nodereference/ nodereference.install 
- Implementation of hook_disable().
File
- ./content.module, line 526 
- Allows administrators to associate custom fields to content types.
Code
function content_notify($op, $module) {
  switch ($op) {
    case 'install':
      content_clear_type_cache();
      break;
    case 'uninstall':
      module_load_include('inc', 'content', 'includes/content.crud');
      content_module_delete($module);
      content_clear_type_cache(TRUE);
      break;
    case 'enable':
      content_associate_fields($module);
      content_clear_type_cache();
      break;
    case 'disable':
      content_clear_type_cache(TRUE);
      break;
  }
}