- Patch #39612 by m3avrck: the log message should have its own fieldset.
parent
f5253a892a
commit
b040c8f857
|
@ -73,7 +73,7 @@ function page_menu($may_cache) {
|
|||
|
||||
if ($may_cache) {
|
||||
$items[] = array('path' => 'node/add/page', 'title' => t('page'),
|
||||
'access' => page_access('create', NULL));
|
||||
'access' => user_access('create pages'));
|
||||
}
|
||||
|
||||
return $items;
|
||||
|
|
|
@ -73,7 +73,7 @@ function page_menu($may_cache) {
|
|||
|
||||
if ($may_cache) {
|
||||
$items[] = array('path' => 'node/add/page', 'title' => t('page'),
|
||||
'access' => page_access('create', NULL));
|
||||
'access' => user_access('create pages'));
|
||||
}
|
||||
|
||||
return $items;
|
||||
|
|
|
@ -88,15 +88,11 @@ function story_form(&$node) {
|
|||
|
||||
$form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title);
|
||||
|
||||
$form['body'] = array(
|
||||
'#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE
|
||||
);
|
||||
$form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE);
|
||||
$form = array_merge($form, filter_form($node->format));
|
||||
|
||||
|
||||
$form['log'] = array(
|
||||
'#type' => 'textarea', '#title' => t('Log message'), '#default_value' => $node->log,
|
||||
'#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
|
||||
$form['log'] = array('#type' => 'fieldset', '#title' => t('Log message'), '#collapsible' => TRUE, '#collapsed' => TRUE);
|
||||
$form['log']['message'] = array('#type' => 'textarea', '#default_value' => $node->log, '#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
|
||||
);
|
||||
|
||||
return $form;
|
||||
|
|
|
@ -88,15 +88,11 @@ function story_form(&$node) {
|
|||
|
||||
$form['title'] = array('#type' => 'textfield', '#title' => t('Title'), '#required' => TRUE, '#default_value' => $node->title);
|
||||
|
||||
$form['body'] = array(
|
||||
'#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE
|
||||
);
|
||||
$form['body'] = array('#type' => 'textarea', '#title' => t('Body'), '#default_value' => $node->body, '#rows' => 20, '#required' => TRUE);
|
||||
$form = array_merge($form, filter_form($node->format));
|
||||
|
||||
|
||||
$form['log'] = array(
|
||||
'#type' => 'textarea', '#title' => t('Log message'), '#default_value' => $node->log,
|
||||
'#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
|
||||
$form['log'] = array('#type' => 'fieldset', '#title' => t('Log message'), '#collapsible' => TRUE, '#collapsed' => TRUE);
|
||||
$form['log']['message'] = array('#type' => 'textarea', '#default_value' => $node->log, '#description' => t('An explanation of the additions or updates being made to help other authors understand your motivations.')
|
||||
);
|
||||
|
||||
return $form;
|
||||
|
|
Loading…
Reference in New Issue