public function PurgePurgerBundleUI::get_form in Purge 7.2
Generates a form form the current form settings.
Return value
array $form
File
- includes/
purge_ui.class.inc, line 64 - Provides administrative interface for the Purge module.
Class
- PurgePurgerBundleUI
- Generates UI elements for the Purge UI module.
Code
public function get_form() {
// Check if this is a list or an item.
if ($this->action == 'view' && is_null($this->item_name)) {
$form = $this
->get_form_list();
}
elseif ($this->action == 'view') {
$form = $this
->get_form_view();
}
else {
$form = $this
->get_form_edit();
}
return $form;
}