function file_entity_type_enable_confirm in File Entity (fieldable files) 7.2
Same name and namespace in other branches
- 7.3 file_entity.admin.inc \file_entity_type_enable_confirm()
Menu callback; disable a single file type.
1 string reference to 'file_entity_type_enable_confirm'
- file_entity_menu in ./
file_entity.module - Implements hook_menu().
File
- ./
file_entity.admin.inc, line 969
Code
function file_entity_type_enable_confirm($form, &$form_state, $type) {
$form['type'] = array(
'#type' => 'value',
'#value' => $type->type,
);
$form['label'] = array(
'#type' => 'value',
'#value' => $type->label,
);
$message = t('Are you sure you want to enable the file type %type?', array(
'%type' => $type->label,
));
return confirm_form($form, $message, 'admin/structure/file-types', '', t('Enable'));
}