Created
September 7, 2010 16:04
-
-
Save mrchrisadams/568589 to your computer and use it in GitHub Desktop.
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 | |
switch($form_id) { | |
case 'group_node_form': | |
var_dump($form); | |
// want to hide two of these options when creating new groups | |
unset($form['#content_extra_fields']['og_register']); | |
// why would this not work? | |
break; | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment