Commit a21bde54 authored by alexpott's avatar alexpott

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

parent 5fe8034b
...@@ -30,7 +30,6 @@ ...@@ -30,7 +30,6 @@
* } * }
* }, * },
* list_path = "admin/config/media/picturemapping", * list_path = "admin/config/media/picturemapping",
* uri_callback = "picture_mapping_uri",
* config_prefix = "picture.mappings", * config_prefix = "picture.mappings",
* entity_keys = { * entity_keys = {
* "id" = "id", * "id" = "id",
...@@ -163,4 +162,16 @@ public function hasMappings() { ...@@ -163,4 +162,16 @@ public function hasMappings() {
return $mapping_found; 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) { ...@@ -116,24 +116,6 @@ function picture_mapping_load($id) {
return entity_load('picture_mapping', $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(). * Implements hook_theme().
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment