You are here

function shs_field_widget_info in Simple hierarchical select 7

Implements hook_field_widget_info().

File

./shs.module, line 300
Provides an additional widget for term fields to create hierarchical selects.

Code

function shs_field_widget_info() {
  return array(
    'taxonomy_shs' => array(
      'label' => t('Simple hierarchical select'),
      'field types' => array(
        'taxonomy_term_reference',
        'entityreference',
      ),
      'settings' => array(
        'shs' => array(
          'create_new_terms' => FALSE,
          'create_new_levels' => FALSE,
          'force_deepest' => FALSE,
        ),
      ),
    ),
  );
}