function _block_revisions_form in Block Revisions 6
Same name and namespace in other branches
- 7 block_revisions.module \_block_revisions_form()
1 call to _block_revisions_form()
- block_revisions_form_alter in ./
block_revisions.module - Implementation of hook_form_alter().
File
- ./
block_revisions.module, line 127
Code
function _block_revisions_form() {
$form['revision_information'] = array(
'#type' => 'fieldset',
'#title' => t('Revision information'),
'#collapsible' => TRUE,
// Collapsed by default when "Create new revision" is unchecked
'#collapsed' => FALSE,
'#weight' => 20,
);
$form['revision_information']['revision'] = array(
'#access' => user_access('administer blocks'),
'#type' => 'checkbox',
'#title' => t('Create new revision'),
'#default_value' => variable_get('block_revisions_revision_default', FALSE),
);
$form['revision_information']['log'] = array(
'#type' => 'textarea',
'#title' => t('Log message'),
'#rows' => 2,
'#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.'),
);
return $form;
}