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