function commerce_file_handler_field_license::init in Commerce File 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/
handlers/ commerce_file_handler_field_license.inc, line 12 - Contains the basic license field handler.
Class
- commerce_file_handler_field_license
- Field handler to provide simple renderer that allows linking to an entity.
Code
function init(&$view, &$options) {
parent::init($view, $options);
$this->additional_fields['license_id'] = 'license_id';
if (!empty($this->options['link_to_entity']) && $this
->_valid_link_to_entity_option($this->options['link_to_entity'])) {
$this->additional_fields['uid'] = 'uid';
}
}