pathauto_entity.install in Pathauto Entity 7
File
pathauto_entity.install
View source
<?php
function pathauto_entity_uninstall() {
module_load_include('module', 'pathauto_entity');
$entities = pathauto_entity_available_entity_types();
if (isset($entities)) {
foreach ($entities as $type => $status) {
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'pathauto_' . $type . '_%', 'LIKE')
->execute();
foreach ($results as $result) {
variable_del($result->name);
}
}
}
$results = db_select('variable', 'v')
->fields('v', array(
'name',
))
->condition('name', 'pathauto_entity_%', 'LIKE')
->execute();
foreach ($results as $result) {
variable_del($result->name);
}
}