Created
March 19, 2014 20:56
-
-
Save barraponto/9651054 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 | |
/** | |
* @file formgrouper.module | |
* TODO: Enter file description here. | |
*/ | |
/** | |
* Implements hook_form_alter(). | |
*/ | |
function formgrouper_form_alter(&$form, &$form_state, $form_id) { | |
if ($form_id == 'article_node_form') { | |
$form['formgrouper'] = array( | |
'#type' => 'fieldset', | |
'#title' => t('Form Grouper'), | |
'#collapsible' => TRUE, | |
'#collapsed' => TRUE, | |
); | |
$form['formgrouper']['title'] = $form['title']; | |
unset($form['title']); | |
$form['formgrouper']['body'] = $form['body']; | |
unset($form['body']); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment