public function dsField::render in Display Suite 6.3
Return a value for a field or group
Parameters
array $item: The item to render. The item requires a 'content' key.
Return value
A rendered item, or FALSE if no content was found
1 method overrides dsField::render()
- dsFieldGroup::render in plugins/
ds_field/ group.inc - Implements dsField::render() @todo
File
- plugins/
ds_field/ basic.inc, line 249
Class
Code
public function render() {
if (empty($this->settings['theme'])) {
$this->settings['theme'] = DS_DEFAULT_THEME_FIELD;
}
$this->content = theme($this->settings['theme'], $this);
// theme() can return anything, but we only want to return content where
// there is 1 or more characters
if (isset($this->content) && strlen($this->content) > 0) {
return $this->content;
}
return FALSE;
}