Unserializes the result of _contextual_links_to_id().
string $id: A serialized representation of a #contextual_links property value array.
array The value for a #contextual_links property.
_contextual_links_to_id
function _contextual_id_to_links($id) {
$contextual_links = array();
$contexts = explode('|', $id);
foreach ($contexts as $context) {
list($module, $parent_path, $path_args, $metadata_raw) = explode(':', $context);
$path_args = explode('/', $path_args);
$metadata = drupal_get_query_array($metadata_raw);
$contextual_links[$module] = array(
$parent_path,
$path_args,
$metadata,
);
}
return $contextual_links;
}