public function getIndexableFromNode($content, $include_attachments = true) { $indexableContent = parent::getIndexableFromNode($content, $include_attachments); if (empty($content['url_title'])) { $indexableContent['url_title'] = $content['url_title']; } return $indexableContent; }
public function getIndexableFromNode($content, $include_attachments = true) { $indexableContent = parent::getIndexableFromNode($content, $include_attachments); $option_titles = array(); //options may be serialized if (is_string($content['options'])) { $content['options'] = unserialize($content['options']); } foreach ((array) $content['options'] as $option) { array_push($option_titles, $option['title']); } $indexableContent['options'] = implode(',', $option_titles); return $indexableContent; }
public function getIndexableFromNode($content, $include_attachments = true) { $indexableContent = parent::getIndexableFromNode($content, $include_attachments); if (empty($content['note'])) { $indexableContent['note'] = $content['note']; } if (empty($content['actionreason'])) { $indexableContent['actionreason'] = $content['actionreason']; } if (empty($content['customreason'])) { $indexableContent['customreason'] = $content['customreason']; } return $indexableContent; }