You are here

function youtube_field_info in YouTube Field 7

Implements hook_field_info().

File

./youtube.module, line 166

Code

function youtube_field_info() {
  return array(
    // We name our field as the associative name of the array.
    'youtube' => array(
      'label' => t('YouTube video'),
      'description' => t('A video hosted on YouTube.'),
      'default_widget' => 'youtube',
      'default_formatter' => 'youtube_video',
      'property_type' => 'youtube',
      'property_callbacks' => array(
        'youtube_property_info_callback',
      ),
    ),
  );
}