You are here

function sheetnode_field_formatter_info in Sheetnode 6

Same name and namespace in other branches
  1. 5 sheetnode.module \sheetnode_field_formatter_info()
  2. 7.2 sheetnode.module \sheetnode_field_formatter_info()
  3. 7 sheetnode.module \sheetnode_field_formatter_info()

Implementation of hook_field_formatter_info().

File

./sheetnode.module, line 724

Code

function sheetnode_field_formatter_info() {
  $formatters = array(
    'default' => array(
      'label' => t('Default'),
      'field types' => array(
        'sheetfield',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    ),
  );
  if (module_exists('date')) {
    $formatters['socialcalc_date'] = array(
      'label' => t('SocialCalc'),
      'field types' => array(
        'date',
        'datetime',
        'datestamp',
      ),
      'multiple values' => CONTENT_HANDLE_CORE,
    );
  }
  return $formatters;
}