Requiring files in Drupal 6 & 7
I have seen a lot of Drupal modules where requiring php files is done like this $module = ‘my_module’; require_once(DRUPAL_ROOT…
Browse essential Drupal functions with explanations, examples, and use cases for efficient development.
I have seen a lot of Drupal modules where requiring php files is done like this $module = ‘my_module’; require_once(DRUPAL_ROOT…
In case you need to log errors and other messages in Drupal 7 use may use it’s watchdog function. Same…