function media_update_7212 in D7 Media 7.3
Same name and namespace in other branches
- 7.4 media.install \media_update_7212()
- 7.2 media.install \media_update_7212()
Re-create application file type for legacy reasons.
File
- ./
media.install, line 1027 - Install, update and uninstall functions for the Media module.
Code
function media_update_7212() {
module_load_include('inc', 'file_entity', 'file_entity.file_api');
if (!file_type_load('application')) {
$application = (object) array(
'api_version' => 1,
'type' => 'application',
'label' => t('Application'),
'description' => t('Multipurpose type - kept to support older sites.'),
'mimetypes' => array(),
'streams' => array(
'public',
),
);
file_type_save($application);
$application = file_type_load('application');
file_type_disable($application);
}
}