function content_handler_field::init in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 includes/views/handlers/content_handler_field.inc \content_handler_field::init()
1 call to content_handler_field::init()
- content_handler_field_multiple::init in includes/
views/ handlers/ content_handler_field_multiple.inc
1 method overrides content_handler_field::init()
- content_handler_field_multiple::init in includes/
views/ handlers/ content_handler_field_multiple.inc
File
- includes/
views/ handlers/ content_handler_field.inc, line 20 - The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.
Class
- content_handler_field
- @file The subclass adds basic field and formatter info, for field-specific subclasses to use if they need to.
Code
function init(&$view, $options) {
$field = $this->content_field;
parent::init($view, $options);
if ($field['multiple']) {
$this->additional_fields['delta'] = 'delta';
}
// Make sure we grab enough information to build a pseudo-node with enough
// credentials at render-time.
$this->additional_fields['type'] = array(
'table' => 'node',
'field' => 'type',
);
$this->additional_fields['nid'] = array(
'table' => 'node',
'field' => 'nid',
);
$this->additional_fields['vid'] = array(
'table' => 'node',
'field' => 'vid',
);
}