public function TripalFieldFormatter::__construct
3.x TripalFieldFormatter.inc | public TripalFieldFormatter::__construct($field, $instance = NULL) |
Instantiates a new TripalFieldFormatter object.
Parameters
$field: An array containing the field data as returned by field_info_field()
$instance: (Optional). Set the instance of this field when one is available. This is necessary when working with instance specific functions such as the formatterSettingsForm, widgetForm, etc.
File
- tripal/
includes/ TripalFields/ TripalFieldFormatter.inc, line 30
Class
Code
public function __construct($field, $instance = NULL) {
$this->field = $field;
$this->instance = $instance;
}