function deploy_get_plan_items in Deploy - Content Staging 6
Same name and namespace in other branches
- 5 deploy.module \deploy_get_plan_items()
Retrieve all the details for all items in a plan.
Takes an optional module name, to return just the items for that module.
Parameters
$pid: Unique identifier for the plan whose items you are retrieving.
$module: Restrict the items to just those associated with this module.
7 calls to deploy_get_plan_items()
- deploy_check_batch in ./
deploy.module - Batch API callback for the hook_deploy_check() process.
- deploy_list_form in ./
deploy.plans.admin.inc - Display a list of all items in a specified plan.
- deploy_overview in ./
deploy.plans.admin.inc - Display a list of all deployment plans.
- deploy_plan in ./
deploy.module - Deploy the specified plan to a remote server
- deploy_plan_check in ./
deploy.module - Run the dependency checking hooks for the specified deployment plan.
File
- ./
deploy.module, line 557 - Deployment API which enables modules to deploy items between servers.
Code
function deploy_get_plan_items($pid, $module = NULL) {
$items = array();
$sql = "SELECT * FROM {deploy_plan_items} WHERE pid = %d";
if (!is_null($module)) {
$sql .= " and module = '%s'";
}
$sql .= " order by weight_group, weight";
$result = db_query($sql, $pid, $module);
while ($item = db_fetch_array($result)) {
$items[] = $item;
}
return $items;
}