Last active
August 29, 2015 14:05
-
-
Save balintbrews/e647e768e422e187683d to your computer and use it in GitHub Desktop.
Drupal snippet: Display only the relevant feature group on the Features admin UI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function YOUR_MODULE_form_features_admin_form_alter(&$form, &$form_state, $form_id) { | |
$form['packages']['#access'] = FALSE; | |
unset($form['package_YOUR_FEATURES_GROUP']['#group']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment