security update for uuid xmlsitemap file_field_path
This commit is contained in:
@@ -6,8 +6,7 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* Plugins are described by creating a $plugin array which will be used
|
||||
* by the system that includes this file.
|
||||
* CTools UUID entity context plugin definition.
|
||||
*/
|
||||
$plugin = array(
|
||||
'title' => t("Entity: UUID"),
|
||||
@@ -17,11 +16,27 @@ $plugin = array(
|
||||
'get children' => 'uuid_entity_uuid_get_children',
|
||||
);
|
||||
|
||||
/**
|
||||
* Fetches the "child" information for a given parent entity.
|
||||
*
|
||||
* @todo document me properly.
|
||||
*
|
||||
* @return array
|
||||
* The children.
|
||||
*/
|
||||
function uuid_entity_uuid_get_child($plugin, $parent, $child) {
|
||||
$plugins = uuid_entity_uuid_get_children($plugin, $parent);
|
||||
return $plugins[$parent . ':' . $child];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetches all children types for a given parent entity.
|
||||
*
|
||||
* @todo document me properly.
|
||||
*
|
||||
* @return array
|
||||
* All the children.
|
||||
*/
|
||||
function uuid_entity_uuid_get_children($original_plugin, $parent) {
|
||||
$entities = entity_get_info();
|
||||
$plugins = array();
|
||||
|
Reference in New Issue
Block a user