You are here

function matrix_field_widget_info in Matrix field 8.2

Same name and namespace in other branches
  1. 7.2 matrix.module \matrix_field_widget_info()

Implements hook_field_widget_info().

File

./matrix.module, line 138
Contains matrix.module.

Code

function matrix_field_widget_info() {
  return array(
    'matrix_text' => array(
      'label' => t('Text Matrix'),
      'description' => t('A grid of textfields'),
      'field types' => array(
        'matrix_text',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
    'matrix_custom' => array(
      'label' => t('Custom Matrix'),
      'description' => t('A grid of form elements'),
      'field types' => array(
        'matrix_custom',
      ),
      'settings' => array(),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_CUSTOM,
        'default value' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}