#SMKA-26 corrected code to follow the drupal way