function deploy_get_min_weight in Deploy - Content Staging 6
Get the current lowest weight in a specified plan.
Used so that items can force themselves to be weighted "lighter" than anything else currently in the plan.
Parameters
$pid: Unique identifier for the plan we want to check.
8 calls to deploy_get_min_weight()
- book_node_deploy_check in modules/
book_deploy/ book_deploy.module - Implementation of hook_node_deploy_check().
- comment_deploy_check in modules/
comment_deploy/ comment_deploy.module - Implementation of hook_deploy_check().
- filefield_deploy_node_deploy_check in modules/
filefield_deploy/ filefield_deploy.module - Implementation of hook_node_deploy_check().
- nodereference_node_deploy_check in modules/
nodereference_deploy/ nodereference_deploy.module - Implementation of hook_node_deploy_check().
- node_deploy_check in modules/
node_deploy/ node_deploy.module - Implementation of hook_deploy_check().
File
- ./
deploy.module, line 597 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_min_weight($pid) {
return db_result(db_query("SELECT MIN(weight) FROM {deploy_plan_items} WHERE pid = %d", $pid));
}