| 1 |
<?php |
<?php |
| 2 |
// $Id: compact_forms.admin.inc,v 1.2 2009/05/03 19:09:26 sun Exp $ |
// $Id: compact_forms.admin.inc,v 1.3 2009/05/03 20:08:05 sun Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 9 |
/** |
/** |
| 10 |
* Form builder function for Compact Forms settings. |
* Form builder function for Compact Forms settings. |
| 11 |
*/ |
*/ |
| 12 |
function compact_forms_admin_form() { |
function compact_forms_admin_form($form, &$form_state) { |
| 13 |
$form['compact_forms_ids'] = array( |
$form['compact_forms_ids'] = array( |
| 14 |
'#type' => 'textarea', |
'#type' => 'textarea', |
| 15 |
'#title' => t('Form CSS ids'), |
'#title' => t('Form CSS ids'), |
| 18 |
'#default_value' => variable_get('compact_forms_ids', 'user-login-form'), |
'#default_value' => variable_get('compact_forms_ids', 'user-login-form'), |
| 19 |
'#description' => t('The CSS ids of forms that shall be displayed compact. One per line.'), |
'#description' => t('The CSS ids of forms that shall be displayed compact. One per line.'), |
| 20 |
); |
); |
|
$form['compact_forms_colons'] = array( |
|
|
'#type' => 'checkbox', |
|
|
'#title' => t('Keep trailing colons in labels'), |
|
|
'#default_value' => variable_get('compact_forms_colons', 0), |
|
|
'#description' => t('When enabled, trailing colons after the field label will be removed.'), |
|
|
); |
|
| 21 |
$form['compact_forms_stars'] = array( |
$form['compact_forms_stars'] = array( |
| 22 |
'#type' => 'radios', |
'#type' => 'radios', |
| 23 |
'#title' => t('Required field handling'), |
'#title' => t('Required field handling'), |