module_invoke to create user search block not working I've done the following to create two search blocks: 

$content_search = module_invoke('search', 'block_view', 'content_search');
$user_search = module_invoke('search', 'block_view', 'user_search');


And I then call the blocks as needed like so:

&lt;?php print render($content_search['content']); ?&gt;
&lt;?php print render($user_search['content']); ?&gt;


They render correctly and the content search works just fine, but running something through the user search block just searches content. I noticed that regardless of which block I use, they both go to the URL http://example.com/search/node/[search parameters]

(This is Drupal 7 BTW)
The search block only works for the default search type. From search_box_form_submit():

$info = search_get_default_module_info();
if ($info) {
  $form_state['redirect'] = 'search/' . $info['path'] . '/' . trim($form_state['values'][$form_id]);
}
else {
  form_set_error(NULL, t('Search is currently disabled.'), 'error');
}


The third parameters you're passing ('content_search', 'user_search') are ignored. Presumably your default search type is content and that's why you're being redirected to the content search in both forms.

You can build the correct search form pretty easily though:

$content_form = drupal_get_form('search_form', NULL, '', 'node');
$user_form = drupal_get_form('search_form', NULL, '', 'user');