You are here

function rate_field_widget_info in Rate 7.2

Implements hook_field_widget_info().

File

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

Code

function rate_field_widget_info() {
  $info = array();
  $widgets = _rate_get_widgets();
  foreach ($widgets as $type => $widget) {
    $info["rate_widget_{$type}"] = array(
      'label' => t($widget->name),
      'field types' => array(
        'rate',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    );
  }
  return $info;
}