You are here

function rate_field_formatter_info in Rate 7.2

Implements hook_field_formatter_info().

File

./rate.module, line 65
Main module file for the Rate module.

Code

function rate_field_formatter_info() {
  return array(
    'rate_format_full' => array(
      'label' => t('Full widget'),
      'field types' => array(
        'rate',
      ),
      'settings' => array(
        'displayed' => RATE_USER_OR_AVERAGE,
        'displayed_just_voted' => RATE_USER,
      ),
    ),
    'rate_format_compact' => array(
      'label' => t('Compact'),
      'field types' => array(
        'rate',
      ),
      'settings' => array(
        'displayed' => RATE_USER_OR_AVERAGE,
        'displayed_just_voted' => RATE_USER,
      ),
    ),
    'rate_format_full_disabled' => array(
      'label' => t('Full widget, disabled'),
      'field types' => array(
        'rate',
      ),
      'settings' => array(
        'displayed' => RATE_USER_OR_AVERAGE,
        'displayed_just_voted' => RATE_USER,
      ),
    ),
    'rate_format_compact_disabled' => array(
      'label' => t('Compact, disabled'),
      'field types' => array(
        'rate',
      ),
      'settings' => array(
        'displayed' => RATE_USER_OR_AVERAGE,
        'displayed_just_voted' => RATE_USER,
      ),
    ),
  );
}