public function dsFieldTheme::formatContent in Display Suite 6.3
Format content for use in an item
Overrides dsField::formatContent
File
- plugins/
ds_field/ theme.inc, line 22
Class
- dsFieldTheme
- The theme field type
Code
public function formatContent() {
$content = NULL;
if (isset($this->settings['formatter'])) {
// Load includes
if (isset($this->settings['file'])) {
include_once $this->settings['file'];
}
$this->content = theme($this->settings['formatter'], $this->settings);
return $this->content;
}
return FALSE;
}