function easy_social_handler_field::init in Easy Social 7.2
Init the handler with necessary data.
Parameters
view $view: The $view object this handler is attached to.
array $options: The item from the database; the actual contents of this will vary based upon the type of handler.
Overrides views_handler_field::init
File
- views/
easy_social_handler_field.inc, line 11 - Easy Social view handler.
Class
- easy_social_handler_field
- Handler for displaying Easy Social share buttons in views.
Code
function init(&$view, &$options) {
parent::init($view, $options);
// Declare additional fields to be loaded with a single query.
// This way there's no need to node_load() on render().
$this->additional_fields['nid'] = 'nid';
$this->additional_fields['type'] = 'type';
$this->additional_fields['language'] = 'language';
$this->additional_fields['title'] = 'title';
}