Edited the code due to Drupal coding standarts.