Added class for drupal7 core hooks