Commit 2fa3490e authored by Dries's avatar Dries
Browse files

- Patch #46106 by markus: usability improvement: moved the block description textfield up.

parent ba0219e4
......@@ -456,6 +456,15 @@ function block_box_delete_confirm_submit($form_id, $form_values) {
};
function block_box_form($edit = array()) {
$form['info'] = array(
'#type' => 'textfield',
'#title' => t('Block description'),
'#default_value' => $edit['info'],
'#maxlength' => 64,
'#description' => t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.', array('%overview' => url('admin/block'))),
'#required' => TRUE,
'#weight' => -19,
);
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Block title'),
......@@ -474,15 +483,6 @@ function block_box_form($edit = array()) {
'#weight' => -17,
);
$form['body_filter']['format'] = filter_form($edit['format'], -16);
$form['info'] = array(
'#type' => 'textfield',
'#title' => t('Block description'),
'#default_value' => $edit['info'],
'#maxlength' => 64,
'#description' => t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.', array('%overview' => url('admin/block'))),
'#required' => TRUE,
'#weight' => -15,
);
return $form;
}
......
......@@ -456,6 +456,15 @@ function block_box_delete_confirm_submit($form_id, $form_values) {
};
function block_box_form($edit = array()) {
$form['info'] = array(
'#type' => 'textfield',
'#title' => t('Block description'),
'#default_value' => $edit['info'],
'#maxlength' => 64,
'#description' => t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.', array('%overview' => url('admin/block'))),
'#required' => TRUE,
'#weight' => -19,
);
$form['title'] = array(
'#type' => 'textfield',
'#title' => t('Block title'),
......@@ -474,15 +483,6 @@ function block_box_form($edit = array()) {
'#weight' => -17,
);
$form['body_filter']['format'] = filter_form($edit['format'], -16);
$form['info'] = array(
'#type' => 'textfield',
'#title' => t('Block description'),
'#default_value' => $edit['info'],
'#maxlength' => 64,
'#description' => t('A brief description of your block. Used on the <a href="%overview">block overview page</a>.', array('%overview' => url('admin/block'))),
'#required' => TRUE,
'#weight' => -15,
);
return $form;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment