You are here

function field_group_field_attach_form in Field Group 7.2

Same name and namespace in other branches
  1. 7 field_group.module \field_group_field_attach_form()

Implements hook_field_attach_form().

File

./field_group.module, line 231
Fieldgroup module.

Code

function field_group_field_attach_form($entity_type, $entity, &$form, &$form_state, $langcode) {
  $form['#attached']['css'][] = drupal_get_path('module', 'field_group') . '/field_group.field_ui.css';
  field_group_attach_groups($form, 'form', $form_state);
  $form['#pre_render'][] = 'field_group_form_pre_render';
}