function pm_get_parent_label in Drupal PM (Project Management) 7.3
Get the label for a given entity.
1 call to pm_get_parent_label()
- pm_get_parents in ./
pm.module - Recursively gather all parents for a given entity.
File
- ./
pm.module, line 557 - Main module file for the Project Management module.
Code
function pm_get_parent_label($entity_type, $wrapper) {
$label = $wrapper
->label();
$id = $wrapper
->getIdentifier();
$path = $entity_type . '/' . $id;
return drupal_valid_path($path) ? l($label, $path) : $label;
}