Change in api to drupal 7 and Fix for retrieving field information from drupal 7 tables