function datex_uninstall in Datex 7.3
Same name and namespace in other branches
- 7.2 datex.install \datex_uninstall()
 
Implements hook_uninstall().
1 call to datex_uninstall()
- datex_install in ./
datex.install  - Implements hook_install().
 
File
- ./
datex.install, line 55  - Datex install file, for adding or removing datex variables.
 
Code
function datex_uninstall() {
  _datex_fix_missing_datex_api_module();
  // Because we messed up old versions, leftover variables might be there.
  $variables = array_map('unserialize', db_query('SELECT name, value FROM {variable}')
    ->fetchAllKeyed());
  $datex_variables = [];
  foreach ($variables as $name => $variable) {
    if (substr($name, 0, strlen('datex')) === 'datex') {
      variable_del($name);
    }
  }
}