You are here

function hs_content_taxonomy_form_content_field_edit_form_alter in Hierarchical Select 6.3

Implementation of hook_form_FORM_ID_alter()

File

modules/hs_content_taxonomy.module, line 54
Implementation of the Hierarchical Select API for the Content Taxonomy module.

Code

function hs_content_taxonomy_form_content_field_edit_form_alter(&$form, &$form_state) {
  if ($form['#field']['widget']['type'] == 'content_taxonomy_hs') {
    $form['field']['multiple']['#attributes'] = array(
      'disabled' => 'disabled',
    );
    $form['field']['multiple']['#description'] = t('This setting is now managed by the Hierarchical Select widget configuration!');
  }
}