You are here

function twitterfield_field_formatter_info in TwitterField 6

Same name and namespace in other branches
  1. 7 twitterfield.module \twitterfield_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./twitterfield.module, line 223
TwitterField: Defines a CCK widget and display formatters for Twitter items.

Code

function twitterfield_field_formatter_info() {
  $values = array(
    'twitter_link' => array(
      'label' => t('Twitter Link'),
      'field types' => array(
        'text',
      ),
    ),
    'twitter_widget' => array(
      'label' => t('Twitter Widget'),
      'field types' => array(
        'text',
      ),
    ),
  );
  if (module_exists('twitter_pull')) {
    $values['twitter_pull'] = array(
      'label' => t('Twitter Pull'),
      'field types' => array(
        'text',
      ),
    );
  }
  return $values;
}