public function purl_pair::admin_form in Persistent URL 6
Same name and namespace in other branches
- 7 includes/purl_pair.inc \purl_pair::admin_form()
Allow extension of the admin setup form.
Overrides purl_path::admin_form
File
- includes/
purl_pair.inc, line 12
Class
- purl_pair
- Pair pair prefixer.
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_pair_{$id}_key"] = array(
// todo write update from path to pair
'#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,
);
}