You are here

function deploy_plan_exists in Deploy - Content Staging 6

Check to see if a plan already exists with a given name

Parameters

$name: Plan name to check.

Return value

$pid Plan's pid, or 0 if not found.

5 calls to deploy_plan_exists()
comment_deploy_operations_add_now_form_submit in modules/comment_deploy/comment_deploy.pages.inc
Submit handler for comment_deploy_operations_add_now_form().
deploy_create_plan in ./deploy.module
Create a new deployment plan.
deploy_plan_form_validate in ./deploy.plans.admin.inc
Validate callback for deploy_plan_form().
node_deploy_operations_create_plan in modules/node_deploy/node_deploy.pages.inc
Helper function that creates a deployment plan.
taxonomy_vocabulary_deploy_add_form_submit in modules/taxonomy_deploy/taxonomy_deploy.pages.inc
Submit handler for taxonomy_vocabulary_deploy_add_form().

File

./deploy.module, line 650
Deployment API which enables modules to deploy items between servers.

Code

function deploy_plan_exists($name) {
  return db_result(db_query("SELECT pid FROM {deploy_plan} WHERE name = '%s'", $name));
}