Hi,

i want to modify the amount of search results but hook_search_execute doesn't seem to be executed when using ds suite to show the results. My code:

function babyhuis_custom_search_execute($keys, $conditions){
$conditions->limit(12);
return $conditions;
}

kind regards
Volkan

CommentFileSizeAuthor
#4 1403362-4.patch1.07 KBswentel

Comments

muschpusch’s picture

Category: support » feature

Ok the limit is like in D7 core hardcoded in function:

node_ds_search_execute($keys = NULL, $conditions = NULL);

Wouldn't it be nice to make this configurable?

swentel’s picture

Hmm, yeah, makes sense, could be an easy patch, care to go for it ? :)

muschpusch’s picture

:) Ok i will do it!

swentel’s picture

Status: Active » Needs review
StatusFileSize
new1.07 KB

Can you test this patch ?

swentel’s picture

Status: Needs review » Fixed

Committed and pushed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.