function eck_revision_get_real_path in ECK Revision 7
Converts reference path to real path.
3 calls to eck_revision_get_real_path()
- eck_revision_revision_delete_confirm in ./
eck_revision.pages.inc - Asks for confirmation of the deletion to prevent against CSRF attacks.
- eck_revision_revision_overview in ./
eck_revision.pages.inc - Generates an overview table of older revisions of an entity.
- eck_revision_revision_revert_confirm in ./
eck_revision.pages.inc - Asks for confirmation of the reversion to prevent against CSRF attacks.
File
- ./
eck_revision.module, line 480 - ECK Revision module.
Code
function eck_revision_get_real_path($path = array(), $entity = NULL) {
$path = eck_revision_clean_path($path);
$path_args = explode("/", $path);
$key = array_search("%", $path_args);
if (!empty($key)) {
$path_args[$key] = !isset($entity) ? "%" : $entity->id;
}
return implode("/", $path_args);
}