Move base table declaration to the right place.
Remove redundant arguments and code.
Simply skip on 'info' key; don't rely on order of keys to return.
Pull out join table switch into its own function.
Use Drupal naming conventions for variables.
Remove pointless variable assignment.
Use t() correctly; don't use simple concatenation.
Minor stlyistic and comment changes.
Make it clearer where title text is coming from.
Fix and clarify comments.
Extract field handler logic entirely into its own function.
Extract filder handler logic into function.
Remove redundant variable assignment.
Set argument handler function to return array.
Set sort handler function to return array.
Stylistic changes; small syntax fixes.
Update variable name in civicrm_views_get_filter().
Suppress undefined index errors.