eliminated repeats on locking message
Fixed coder violations and a bad drupal set message call.
Merge pull request #1 from MorganDawe/7.x.quick_fix

Fixed coder violations and a bad drupal set message call.
Merge pull request #14 from ajstanley/7.x

eliminated repeats on locking message