function uc_extra_fields_pane_install in Extra Fields Checkout Pane 7
Same name and namespace in other branches
- 6.2 uc_extra_fields_pane.install \uc_extra_fields_pane_install()
- 6 uc_extra_fields_pane.install \uc_extra_fields_pane_install()
Implements hook_install().
Return value
void
File
- ./
uc_extra_fields_pane.install, line 131 - Module: uc_extra_fields_pane.module
Code
function uc_extra_fields_pane_install() {
// Increase the weight of this module, making it 10 heavier than uc_addresses.
$weight = db_select('system', 's')
->fields('s', array(
'weight',
))
->condition('name', 'uc_addresses', '=')
->execute()
->fetchField();
db_update('system')
->fields(array(
'weight' => $weight + 10,
))
->condition('name', 'uc_extra_fields_pane', '=')
->execute();
}