function media_update_get_update_params in Media Update 7
Same name and namespace in other branches
- 7.2 media_update.module \media_update_get_update_params()
Return the relevant fields for updating a particular media item.
Parameters
string $schema: The stream type for determining the appropriate update params.
1 call to media_update_get_update_params()
- media_update_form_media_edit_alter in ./
media_update.module - Implements hook_form_FORM_ID_alter().
File
- ./
media_update.module, line 45 - Defines the module media_update.
Code
function media_update_get_update_params($schema = 'public') {
$handlers = module_invoke_all('media_update_params', $schema);
// Standard types (public/private) are handled here as the default.
if (!isset($handlers['form'])) {
$handlers = array(
'form' => 'media_add_upload',
'field' => 'upload',
'type' => 'file',
);
}
return $handlers;
}