Drupalでthemeやmoduleのパスを取得するにはdrupal_get_pathを使用する。
たとえばmoduleから外部ファイルをインクルードするときは
include_once('./'. drupal_get_path('module', 'mymodule') .'/extfile.inc');
というようにする。
Drupalでthemeやmoduleのパスを取得するにはdrupal_get_pathを使用する。
たとえばmoduleから外部ファイルをインクルードするときは
include_once('./'. drupal_get_path('module', 'mymodule') .'/extfile.inc');
というようにする。