This is just a question of aesthetics, I'd like to have a separator in one of my plugin's admin options.
How would one do this in a succinct way?
Edit :
This is the code for 2 options, for example :
$fields = array();
$fields[] = array(
'label' => 'Enable insert menu',
'tags' => 'NAME="image_upload"',
'value' => qa_opt('image_upload'),
'type' => 'checkbox',
);
$fields[] = array(
'label' => 'Show save option',
'tags' => 'NAME="save"',
'value' => qa_opt('save'),
'type' => 'checkbox',
);
// Return full admin form
return array(
'ok' => ($ok && !isset($error)) ? $ok : null,
'fields' => $fields,
'buttons' => array(
array(
'label' => 'Save',
'tags' => 'NAME="admin_save"',
),
array(
'label' => 'Reset',
'tags' => 'NAME="admin_reset"',
)
),
);
Between the 2 options in $fields I want to add a third option that simply adds a separator, a horizontal line. Simply looking for a succinct way to do this ...