function drupal_module_set_weight in Elysia Cron 7
Same name and namespace in other branches
- 6.2 elysia_drupalconv.php \drupal_module_set_weight()
- 6 elysia_drupalconv.php \drupal_module_set_weight()
1 call to drupal_module_set_weight()
- elysia_cron_help in ./
elysia_cron.module - I use help section for admin/build/modules page to check if elysia_cron is the module with the smallest weight. If it's not i'll set it and print a message
File
- ./
elysia_drupalconv.php, line 74
Code
function drupal_module_set_weight($name, $weight) {
db_update('system')
->fields(array(
'weight' => $weight,
))
->condition('name', $name)
->execute();
}