case 4059 - Use the ajax commands preprocess hook.
case 4059 - Use drupal_alter instead of module_invoke.
Merge branch 'case-4059' into new-search