public function SearchApiServiceInterface::fieldsUpdated in Search API 7
Notifies the server that the field settings for the index have changed.
If any user action is necessary as a result of this, the method should use drupal_set_message() to notify the user.
Parameters
SearchApiIndex $index: The updated index.
Return value
bool TRUE, if this change affected the server in any way that forces it to re-index the content. FALSE otherwise.
Throws
SearchApiException If an error occurred while reacting to the change of fields.
2 methods override SearchApiServiceInterface::fieldsUpdated()
- SearchApiAbstractService::fieldsUpdated in includes/
service.inc - Implements SearchApiServiceInterface::__construct().
- SearchApiDummyService::fieldsUpdated in tests/
search_api_test_2.module - Notifies the server that the field settings for the index have changed.
File
- includes/
service.inc, line 168 - Contains SearchApiServiceInterface and SearchApiAbstractService.
Class
- SearchApiServiceInterface
- Interface defining the methods search services have to implement.
Code
public function fieldsUpdated(SearchApiIndex $index);