hook_block_view_alter() is only called if the Block module is enabled. When it is disabled the module does nothing.
The alternative to doing the alter is to override theme_search_api_sorts_list and to do the check for if the form widget should be used in there and, if not, call the original theme function.
Closed: outdated
1.0
Code