You are here

function media_field_info in D7 Media 7

Implement hook_field_info().

File

includes/media.fields.inc, line 10
: Provides a "Multimedia asset" field to the fields API

Code

function media_field_info() {
  return array(
    'media' => array(
      'label' => t('Multimedia asset (deprecated)'),
      'description' => t('This field stores a reference to a multimedia asset.'),
      'settings' => array(),
      'instance_settings' => array(
        'file_extensions' => media_variable_get('file_extensions'),
      ),
      'default_widget' => 'media_generic',
      'default_formatter' => 'media_large',
      'property_type' => 'field_item_file',
      'property_callbacks' => array(
        'entity_metadata_field_file_callback',
      ),
    ),
  );
}