function drupal_module_get_min_weight in Elysia Cron 7
Same name and namespace in other branches
- 6.2 elysia_drupalconv.php \drupal_module_get_min_weight()
- 6 elysia_drupalconv.php \drupal_module_get_min_weight()
1 call to drupal_module_get_min_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 65
Code
function drupal_module_get_min_weight($except_module = false) {
return !$except_module ? db_query("select min(weight) from {system}")
->fetchField() : db_query("select min(weight) from {system} where name != :name", array(
':name' => $except_module,
))
->fetchField();
}