function media_media_format_form_prepare_alter in D7 Media 7
Implements hook_media_format_form_prepare_alter().
File
- includes/
media.types.inc, line 227 - Helper functions related to media types. CRUD for saving their settings mainly.
Code
function media_media_format_form_prepare_alter(&$form, &$form_state, $file) {
switch ($file->type) {
case 'image':
$form['options']['alt'] = array(
'#type' => 'textfield',
'#title' => t('Description'),
'#default_value' => $file->filename,
'#description' => t('Alternate text a user will see if the image is not available'),
);
break;
}
}