You are here

function views_handler_field_fontyourface_license::init in @font-your-face 7

Same name and namespace in other branches
  1. 6.2 views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::init()
  2. 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::init()

Override init function to provide generic option to link to license.

Overrides views_handler_field::init

File

views/views_handler_field_fontyourface_license.inc, line 16
Views handler.

Class

views_handler_field_fontyourface_license
Field handler to provide simple renderer that allows linking to a license.

Code

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

  // if
}