You are here

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

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

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

Overrides views_handler_field::init

File

views/views_handler_field_fontyourface_foundry.inc, line 16
Views handler.

Class

views_handler_field_fontyourface_foundry
Field handler to provide simple renderer that allows linking to a foundry.

Code

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

  // if
}