I must be going crazy, but I have this piece of code
$test_label_file = drupal_get_path('module', 'mj_compliance').'/states/nv_mmed/label_handlers/nv_test_result_label.inc';
if ($test_result_id && file_exists($test_label_file)) {
require_once $test_label_file;
$obj = new nv_test_result_label();
$obj->init($test_result_id);
$output .= $obj->generateLabel();
}
The problem is file_exists passes, but require fails. drupal_get_path returns a fully qualified path so I don't think it has to do with an include_path failure. Any idea what I'm missing?