function addanother_uninstall

cis7 addanother.install addanother_uninstall()
cle7 addanother.install addanother_uninstall()
elmsmedia7 addanother.install addanother_uninstall()
icor7 addanother.install addanother_uninstall()
meedjum_blog7 addanother.install addanother_uninstall()
mooc7 addanother.install addanother_uninstall()

Implement hook_uninstall().

File

sites/all/modules/ulmus/addanother/addanother.install, line 12
Install, update and uninstall functions for the Add another module.

Code

function addanother_uninstall() {
  $types = node_type_get_types();
  foreach ($types as $type) {
    $typeid = $type->type;
    variable_del('addanother_message_' . $typeid);
    variable_del('addanother_tab_' . $typeid);
    variable_del('addanother_tab_edit_' . $typeid);
    variable_del('addanother_button_' . $typeid);
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.