You are here

function eck_eck_property_widget_info in Entity Construction Kit (ECK) 7.3

Implements hook_eck_property_widget_info().

Defines some default property widgets that come with ECK.

See also

eck_property_info_widget_types()

File

./eck.module, line 715

Code

function eck_eck_property_widget_info() {
  $widget_types = array(
    'text' => array(
      'label' => t('Text'),
      'settings' => array(
        'size' => 60,
        'max_length' => 255,
      ),
      'property types' => array(
        'text',
        'integer',
        'positive_integer',
        'decimal',
        'blob',
        'datetime',
        'uuid',
      ),
      'file' => 'eck.property_widgets',
    ),
    'options' => array(
      'label' => t('Options'),
      'settings' => array(
        'options' => '',
      ),
      'property types' => array(
        'text',
        'integer',
        'positive_integer',
        'decimal',
      ),
      'file' => 'eck.property_widgets',
    ),
    'language_toggle' => array(
      'label' => t('Language toggle'),
      'property types' => array(
        'language',
      ),
      'file' => 'eck.property_widgets',
    ),
  );
  return $widget_types;
}