function deploy_plan_entity_load in Deploy - Content Staging 7.3
Loads an entity that is included in a deployment plan.
Parameters
string $type: The type of entity included in a plan.
int $id: The identifier for the entity in the plan.
int $rev: The revision identifier for the entity in the plan.
Return value
object The entity object.
4 calls to deploy_plan_entity_load()
- DeployManagerEntitiesEntity::label in includes/
DeployManagerEntitiesEntity.inc - Returns the label of the entity.
- deploy_manager_entities_label in ./
deploy.module - Entity label callback.
- deploy_ui_plan::view_page in modules/
deploy_ui/ plugins/ export_ui/ deploy_ui_plan.class.php - Renders the view deployment plan page.
- deploy_views_handler_base::entity_load in includes/
views/ handler_base.inc - Loads an entity based on the row values.
File
- ./
deploy.module, line 760 - Deploy module functions.
Code
function deploy_plan_entity_load($type, $id, $rev = NULL) {
if (empty($rev)) {
$entity = entity_load_single($type, $id);
}
else {
$entity = entity_revision_load($type, $rev);
}
return $entity;
}