object->options, explode('.', $field)); if (isset($value)) { return $value; } } if (isset($this->object->options[$field])) { return $this->object->options[$field]; } // Fallback to the usual behaviour. return parent::get_field($field, $default); } /** * Get translatable properties */ protected function build_properties() { $strings = parent::build_properties(); $properties = array(); // Dynamically add interval options. foreach ($this->object->options['interval_options'] as $key => $value) { $properties['interval_options.' . $key] = array( 'title' => t('Interval option, @key', array('@key' => $key)), 'string' => $value, ); } $strings[$this->get_textgroup()]['search_api_saved_searches_settings'][$this->object->delta] += $properties; return $strings; } }