moopapi.install in Module Object Oriented Programming API 7
Same filename and directory in other branches
Install, update and uninstall functions for the Moopapi module.
File
moopapi.installView source
<?php
/**
* @file
* Install, update and uninstall functions for the Moopapi module.
*/
function moopapi_enable() {
// @todo Abstract it.
//db_query('UPDATE {system} s SET weight = -1000 WHERE name = "moopapi"');
db_update('system')
->fields(array(
'weight' => 1,
))
->condition('type', 'module')
->condition('name', 'moopapi')
->execute();
}
Functions
Name | Description |
---|---|
moopapi_enable | @file Install, update and uninstall functions for the Moopapi module. |