Customize the form for a particular element. This only applies to forms generated by the element_form() helper function.
The name is an array:
array('ElementForm', $recordType, $elementSetName, $elementName);
array $components
The form components, like:
$components = array( 'label' => $labelComponent, 'inputs' => $inputsComponent, 'description' => $descriptionComponent, 'comment' => $commentComponent, 'add_input' => $addInputComponent, 'html' => null );
Omeka_Record_AbstractRecord record
The model being edited.
Element element
The element being edited
array options
An array of additional options for the form
class MyPlugin extends Omeka_Plugin_AbstractPlugin
{
$_filters = array('relabelItemTitle' => array('ElementForm', 'Item', 'Dublin Core', 'Title'));
public function relabelItemTitle($components, $args)
{
$components['label'] = "Label";
return $components;
}
}