location_addanother.install in Location 7.3
Install, update and uninstall functions for the location_addanother module.
File
contrib/location_addanother/location_addanother.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the location_addanother module.
*/
/**
* Implementshook_install().
*/
function location_addanother_install() {
// Change weight so we execute after location.
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('name', 'location_addanother')
->condition('type', 'module')
->execute();
}
/**
* Implementshook_uninstall().
*/
function location_addanother_uninstall() {
$result = db_query("SELECT name FROM {variable} WHERE name LIKE 'location_addanother_%'")
->fetchCol();
foreach ($result as $row) {
variable_del($row->name);
}
}
Functions
Name![]() |
Description |
---|---|
location_addanother_install | Implementshook_install(). |
location_addanother_uninstall | Implementshook_uninstall(). |