function views_handler_field_upload_description::init

2.x views_handler_field_upload_description.inc views_handler_field_upload_description::init(&$view, &$options)

init the handler with necessary data.

Parameters

$view: The $view object this handler is attached to.

$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

modules/upload/views_handler_field_upload_description.inc, line 7

Class

views_handler_field_upload_description
Field handler to provide a list of roles.

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($options['link_to_file'])) {
    $this->additional_fields['fid'] = 'fid';
  }
}