You are here

function uploadfield_field_formatter_info in Video 6.3

Implementation of CCK's hook_field_formatter_info().

File

types/uploadfield/uploadfield.module, line 291

Code

function uploadfield_field_formatter_info() {
  $module_path = drupal_get_path('module', 'uploadfield');
  $formatters = array(
    'video_plain' => array(
      'label' => t('video'),
      'field types' => array(
        'filefield',
      ),
      'description' => t('Displays video files with player embedded.'),
    ),
    'video_nodelink' => array(
      'label' => t('video thumbnail linked to video'),
      'field types' => array(
        'filefield',
      ),
      'description' => t('Displays video thumb files then the video.'),
    ),
  );
  if (module_exists('imagecache')) {
    foreach (imagecache_presets() as $preset) {
      $formatters[$preset['presetname'] . '_videolinked'] = array(
        'label' => t('Preset @preset of video thumbnail linked to video', array(
          '@preset' => $preset['presetname'],
        )),
        'field types' => array(
          'filefield',
        ),
      );
    }
  }
  return $formatters;
}