Add the patches from:
Fix the bug 1966442
Fix the bug from http://drupal.org/node/1732790
Updating with new codes
Update the code with all the code from in http://drupal.org/node/1425228
The module for drupal 7.
change the options, now works with hook_init.