You are here

function sheetnode_field_formatter_info in Sheetnode 7.2

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

Implements hook_field_formatter_info().

File

./sheetnode.module, line 775
Module file for the sheetnode module.

Code

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