public function purl_querystring::admin_form in Persistent URL 6
Same name and namespace in other branches
- 7 includes/purl_querystring.inc \purl_querystring::admin_form()
Allow extension of the admin setup form.
Overrides purl_processor::admin_form
File
- includes/
purl_querystring.inc, line 12
Class
- purl_querystring
- Querystring processor.
Code
public function admin_form(&$form, $id) {
// Note that while this form element's key includes the method ("pair"),
// it will eventually save to the variable purl_method_[id]_key. See
// element validator for how this occurs.
$form[$id]['extra']["purl_method_querystring_{$id}_key"] = array(
'#title' => t('Key'),
'#type' => 'textfield',
'#size' => 12,
'#default_value' => variable_get("purl_method_{$id}_key", ''),
'#element_validate' => array(
'purl_admin_form_key_validate',
),
'#provider_id' => $id,
);
}