You are here

function views_handler_field_upload_description::init in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 6.3 modules/upload/views_handler_field_upload_description.inc \views_handler_field_upload_description::init()

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';
  }
}