From 01e11fa4c06f3b32b104e7b58a296c969b064f4e Mon Sep 17 00:00:00 2001 From: catch Date: Thu, 18 Jul 2019 11:41:25 +0100 Subject: [PATCH] Issue #3066539 by shubham.prakash, Ujin, jhodgdon: Docs for search_index_clear $sid parameter are incorrect --- core/modules/search/search.module | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/modules/search/search.module b/core/modules/search/search.module index 40d8045d678a..5818f2e80b9b 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -133,9 +133,10 @@ function search_preprocess_block(&$variables) { * (optional) The plugin ID or other machine-readable type for the items to * remove from the search index. If omitted, $sid and $langcode are ignored * and the entire search index is cleared. - * @param string|null $sid - * (optional) The ID of the items to remove from the search index. If - * omitted, all items matching $type are cleared, and $langcode is ignored. + * @param int|array|null $sid + * (optional) The ID or array of IDs of the items to remove from the search + * index. If omitted, all items matching $type are cleared, and $langcode + * is ignored. * @param string|null $langcode * (optional) Language code of the item to remove from the search index. If * omitted, all items matching $sid and $type are cleared.