&$form, 'form_state' => &$form_state); } function _dco_theme($name, $args) { return theme($name, $args); } function _dcf_theme_signature($args) { return array(); } function _dcr_hook_theme($specs) { return $specs; } function _dcf_theme_form(&$args) { return array( 'variables' => $args ); } /*************************************************************** * D7 EXTRA FUNCTIONS ***************************************************************/ 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(); } function drupal_module_get_weight($name) { return db_query("select weight from {system} where name = :name", array(':name' => $name))->fetchField(); } function drupal_module_set_weight($name, $weight) { db_update('system')->fields(array('weight' => $weight))->condition('name', $name)->execute(); } function drupal_disable_standard_cron() { } function drupal_clean_after_cron_run() { }