function noderelationships_update_6001 in Node Relationships 6
Change module weight to load after content module.
See also
File
- ./
noderelationships.install, line 128 - Implementation of installation/uninstallation hooks.
Code
function noderelationships_update_6001() {
$ret = array();
$weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE type = 'module' AND name = 'content'"));
$ret[] = update_sql("UPDATE {system} SET weight = %d WHERE type = 'module' AND name = 'noderelationships'", $weight + 1);
return $ret;
}