Commit 3d02e678 authored by cyberwolf's avatar cyberwolf
Browse files

Revert "Issue #1964258: Use core's vocabulary 'hierarchy' property."

This reverts commit 815fb495.
parent 336e8afc
Loading
Loading
Loading
Loading
+7 −3
Changes for paddle.install: 7 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -400,7 +400,7 @@ function paddle_install() {
          'nl' => 'Description for Trefwoorden (tags)',
        ),
      ),
      'hierarchy' => 0,
      'is_flat' => TRUE,
    ),
    'paddle_general' => array(
      'properties' => array(
@@ -413,7 +413,7 @@ function paddle_install() {
          'nl' => 'Description for Algemene woordenlijst',
        ),
      ),
      'hierarchy' => 1,
      'is_flat' => FALSE,
    ),
  );

@@ -426,7 +426,6 @@ function paddle_install() {
        'machine_name' => $machine_name,
        // Different terms will be allowed for each language.
        'i18n_mode' => I18N_MODE_TRANSLATE,
        'hierarchy' => $vocab['hierarchy'],
      );
      taxonomy_vocabulary_save($vocabulary);

@@ -444,6 +443,11 @@ function paddle_install() {
        }
      }
    }

    // Mark it as "flat" if it is.
    if ($vocab['is_flat']) {
      variable_set('taxonomy_vocabulary_' . $machine_name . '_type', 'flat');
    }
  }
}