renamed vars from camelCase to drupal_code style for compatability