function views_handler_field_fontyourface_license::init in @font-your-face 6.2
Same name and namespace in other branches
- 7.2 modules/fontyourface_ui/views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::init()
- 7 views/views_handler_field_fontyourface_license.inc \views_handler_field_fontyourface_license::init()
Override init function to provide generic option to link to license.
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
}