public function field_extractor_handler_field::init in Field Extractor 7
Init the handler with necessary data.
Parameters
view $view: The $view object this handler is attached to.
array $options: The item from the database; the actual contents of this will vary based upon the type of handler.
Overrides views_handler_field::init
File
- views/
field_extractor_handler_field.inc, line 29
Class
- field_extractor_handler_field
- Field extractor views field.
Code
public function init(&$view, &$options) {
parent::init($view, $options);
// Get the field, construct a fake instance array, get the settings.
$field = field_info_field($this->definition['field_name']);
$instance = array(
'settings' => array(),
);
$this->settings = field_extractor_settings($field, $instance);
// Initialize the entity-type of the base table.
$table_data = views_fetch_data($this->table);
$this->entity_type = $table_data['table']['entity type'];
}