private function PurgePurgerBundleUI::get_form_edit in Purge 7.2
Generates a form to edit an item.
Return value
array $form
1 call to PurgePurgerBundleUI::get_form_edit()
- PurgePurgerBundleUI::get_form in includes/
purge_ui.class.inc - Generates a form form the current form settings.
File
- includes/
purge_ui.class.inc, line 209 - Provides administrative interface for the Purge module.
Class
- PurgePurgerBundleUI
- Generates UI elements for the Purge UI module.
Code
private function get_form_edit() {
$form = array();
// First get the form with basic information up.
$form['purge_basic'] = $this
->get_form_edit_basic();
// Get the status form field.
$form['purge_status'] = $this
->get_form_edit_status();
// Get the item specific form field.
$form_name = 'purge_' . $this->item_type;
$function_name = 'get_form_edit_' . $this->item_type;
$form[$form_name] = $this
->{$function_name}();
// $form[$form_name] = $this->get_form_edit_{$this->item_type}();
// Get the buttons.
$form['purge_action'] = $this
->get_form_action();
return $form;
}