function views_handler_field_fontyourface_font::init in @font-your-face 7
Same name and namespace in other branches
- 6.2 views/views_handler_field_fontyourface_font.inc \views_handler_field_fontyourface_font::init()
- 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_font.inc \views_handler_field_fontyourface_font::init()
Override init function to provide generic option to link to font.
Overrides views_handler_field::init
File
- views/
views_handler_field_fontyourface_font.inc, line 16 - Views handler.
Class
- views_handler_field_fontyourface_font
- Field handler to provide simple renderer that allows linking to a font.
Code
function init(&$view, &$data) {
parent::init($view, $data);
if (!empty($this->options['link_to_font'])) {
$this->additional_fields['fid'] = 'fid';
}
// if
}