Commit a09ea89c authored by JacobSingh's avatar JacobSingh

Slightly less broken - although still very much broken fields implementation

parent 9f2686ba
......@@ -128,31 +128,3 @@ function media_media_types() {
return $types;
}
/**
* Menu argument handler. Loads a media type definition when %media_type is in the path.
*
* @param string $type
* @return StdClass
*/
function media_type_load($type) {
return $type;
$media_types = module_invoke_all('media_types');
return $media_types[$type];
}
function media_load($fid) {
return entity_load('media', array($fid));
}
/**
* Implement hook_permission().
*/
function media_permission() {
return array(
'administer media' => array(
'title' => t('Administer media'),
'description' => t('Add, edit or delete media.'),
),
);
}
\ No newline at end of file
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