You are here

function asset_views_handler_field_asset::init in Asset 7

Initialize, don't add the additional fields to group by.

Overrides views_handler_field::init

File

views/handlers/asset_views_handler_field_asset.inc, line 19
Contains the basic asset field handler.

Class

asset_views_handler_field_asset
Field handler to provide simple renderer that allows linking to an asset. Definition terms:

Code

function init(&$view, &$options) {
  parent::init($view, $options);
  if (!empty($this->options['link_to_asset']) || !empty($this->options['asset_tooltip'])) {
    $this->additional_fields['aid'] = array(
      'table' => 'asset',
      'field' => 'aid',
    );
  }
}