Skip to content

Commit

Permalink
Fix vertical tabs and library reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
sthomen authored and herbdool committed Jan 30, 2019
1 parent 8eaeeaa commit 0b0e321
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions field_group.module
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ function field_group_pre_render_htabs(&$element, $group, &$form) {

// Only add form.js on forms.
if (!empty($form['#type']) && $form['#type'] == 'form') {
$element['#attached']['js'][] = 'misc/form.js';
$element['#attached']['library'][] = array('system', 'backdrop.form');
}

$element['#attached']['library'][] = array('field_group', 'horizontal-tabs');
Expand Down Expand Up @@ -1330,9 +1330,9 @@ function field_group_element_info() {
}

/**
* Implements hook_library().
* Implements hook_library_info().
*/
function field_group_library() {
function field_group_library_info() {

$path = backdrop_get_path('module', 'field_group');
// Horizontal Tabs.
Expand Down

0 comments on commit 0b0e321

Please sign in to comment.