function termstatus_form_taxonomy_form_vocabulary_alter in Taxonomy Term Status 7
Implements hook_form_FORM_ID_alter().
File
- ./
termstatus.module, line 130 - Hook implementations and API for the taxonomy term status module.
Code
function termstatus_form_taxonomy_form_vocabulary_alter(&$form, &$form_state, $form_id) {
$vocabulary = $form_state['vocabulary'];
$form['termstatus'] = array(
'#type' => 'fieldset',
'#title' => t('Default publishing options'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
'#weight' => 95,
);
$form['termstatus']['termstatus_default_status'] = array(
'#type' => 'checkbox',
'#title' => t('Published'),
'#default_value' => variable_get('termstatus_default_' . $vocabulary->machine_name, TRUE),
'#description' => t('Users with the <em>Administer vocabularies and terms</em> permission will be able to override this option for each term.'),
);
$form['#submit'][] = 'termstatus_form_taxonomy_form_vocabulary_submit';
}