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