function i18n_boxes_install in Boxes translation 7
Same name and namespace in other branches
- 6 i18n_boxes.install \i18n_boxes_install()
Implements hook_install().
File
- ./
i18n_boxes.install, line 11 - Install, update and uninstall functions for the i18n_boxes module.
Code
function i18n_boxes_install() {
// Update the weight of this module to come later than i18n_block in the
// module chain.
$weight = db_select('system', 's')
->fields('s', array(
'weight',
))
->condition('name', 'i18n_block', '=')
->execute()
->fetchField();
db_update('system')
->fields(array(
'weight' => $weight + 1,
))
->condition('name', 'i18n_boxes', '=')
->execute();
}