function stringoverrides_textbox_combo in String Overrides 5
Same name and namespace in other branches
- 6 stringoverrides.admin.inc \stringoverrides_textbox_combo()
- 7 stringoverrides.admin.inc \stringoverrides_textbox_combo()
Function to return a textbox combo form
1 call to stringoverrides_textbox_combo()
- stringoverrides_admin in ./
stringoverrides.admin.inc - Menu callback for the String Overrides module to display its administration
File
- ./
stringoverrides.admin.inc, line 71 - Admin page callbacks for the String Overrides module.
Code
function stringoverrides_textbox_combo($delta = 0, $enabled = TRUE, $original = '', $replacement = '') {
$form = array(
'#tree' => TRUE,
);
$form['enabled'] = array(
'#type' => 'checkbox',
'#default_value' => $enabled,
'#parents' => array(
'string',
$delta,
'enabled',
),
);
$form['original'] = array(
'#type' => 'textarea',
'#default_value' => $original,
'#rows' => 1,
'#parents' => array(
'string',
$delta,
'original',
),
);
$form['replacement'] = array(
'#type' => 'textarea',
'#default_value' => $replacement,
'#rows' => 1,
'#parents' => array(
'string',
$delta,
'replacement',
),
);
return $form;
}