function deploy_get_plan_items in Deploy - Content Staging 5
Same name and namespace in other branches
- 6 deploy.module \deploy_get_plan_items()
retrieve all the plan items for a specified plan takes an optional module name, to return just the items for that module
2 calls to deploy_get_plan_items()
- deploy_list in ./
deploy.module - list deployment plan items form
- deploy_overview in ./
deploy.module - deployment overview page menu callback
File
- ./
deploy.module, line 720
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";
$result = db_query($sql, $pid, $module);
while ($item = db_fetch_array($result)) {
$items[] = $item;
}
return $items;
}