The profilename.profile file has access to almost everything a normal Drupal modulename.module file does