function location_addanother_install in Location 7.3
Same name and namespace in other branches
- 5.3 contrib/location_addanother/location_addanother.install \location_addanother_install()
- 6.3 contrib/location_addanother/location_addanother.install \location_addanother_install()
- 7.5 contrib/location_addanother/location_addanother.install \location_addanother_install()
- 7.4 contrib/location_addanother/location_addanother.install \location_addanother_install()
Implementshook_install().
File
- contrib/
location_addanother/ location_addanother.install, line 11 - Install, update and uninstall functions for the location_addanother module.
Code
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();
}