Reformatted to drupal coding standards