Skip to content

Commit

Permalink
Issue 3: fix field groups showing up on Manage Display > view modes
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool committed May 11, 2017
1 parent adc82fe commit 732af40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions field_group.module
Original file line number Diff line number Diff line change
Expand Up @@ -265,9 +265,9 @@ function field_group_form_field_ui_field_overview_form_alter(&$form, &$form_stat

/**
* Implements hook_form_FORM_ID_alter().
* Using hook_form_field_ui_display_overview_form_alter.
* Using hook_form_field_ui_display_form_alter.
*/
function field_group_form_field_ui_display_overview_form_alter(&$form, &$form_state) {
function field_group_form_field_ui_display_form_alter(&$form, &$form_state) {
form_load_include($form_state, 'inc', 'field_group', 'field_group.field_ui');
field_group_field_ui_overview_form_alter($form, $form_state, TRUE);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/field_group.ui.test
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class GroupUITestCase extends GroupTestCase {
$this->assertTrue(array_key_exists($this->group_name, $groups), t('Group found in groups array'));

// Add new group on the 'Manage display' page.
$this->backdropPost('admin/structure/types/manage/post/display', $group, t('Save'));
$this->backdropPost('admin/structure/types/manage/post/display/default', $group, t('Save'));
$this->assertRaw(t('New group %label successfully created.', array('%label' => $this->group_label)), t('Group message displayed on screen.'));

// Test if group is in the $groups array.
Expand Down

0 comments on commit 732af40

Please sign in to comment.