You are here

function mee_field_formatter_info in Scald: Media Management made easy 6

Implementation of hook_field_formatter_info().

File

mee/mee.module, line 247
Defines a special textarea, with drag and drop media driven by Scald and dnd.module when rich text editing is enabled on the textarea via the WYSIWYG API.

Code

function mee_field_formatter_info() {
  $formatters = array(
    'default' => array(
      'label' => t('Filtered text'),
      'field types' => array(
        'multimedia_editorial_element',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'plain' => array(
      'label' => t('Plain text'),
      'field types' => array(
        'multimedia_editorial_element',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
    'short' => array(
      'label' => t('Short content'),
      'field types' => array(
        'multimedia_editorial_element',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );

  //@TODO generate context processor based field formatters

  //foreach (scald_contexts() as $context) {

  //  $formatters[$context] = array(
  //    'label' => t('Scald context processor: @context', array('@context' => $context),
  //    'field types' => 'mee',
  //  );

  //}
  return $formatters;
}