Skip to content
Snippets Groups Projects
Commit a21bde54 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2010216 by kgoel, hussainweb: Convert picture_mapping_uri() to ->uri().

parent 5fe8034b
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,6 @@
* }
* },
* list_path = "admin/config/media/picturemapping",
* uri_callback = "picture_mapping_uri",
* config_prefix = "picture.mappings",
* entity_keys = {
* "id" = "id",
......@@ -163,4 +162,16 @@ public function hasMappings() {
return $mapping_found;
}
/**
* {@inheritdoc}
*/
public function uri() {
return array(
'path' => 'admin/config/media/picturemapping/' . $this->id(),
'options' => array(
'entity_type' => $this->entityType,
'entity' => $this,
),
);
}
}
......@@ -116,24 +116,6 @@ function picture_mapping_load($id) {
return entity_load('picture_mapping', $id);
}
/**
* Gets Picture uri callback.
*/
function picture_mapping_uri(PictureMapping $picture_mapping) {
return array(
'path' => 'admin/config/media/picturemapping/' . $picture_mapping->id(),
);
}
/**
* Sets Picture uri callback.
*/
function picture_mapping_set_uri(PictureMapping $picture_mapping) {
return array(
'path' => 'admin/config/media/picturemapping/' . $picture_mapping->id(),
);
}
/**
* Implements hook_theme().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment