0

I have created a custom module which contains the hook_block_view and inside that I'm calling a function which only has this code ( the data.php only contains html and php to print a table ):

include_once DRUPAL_ROOT . '/files/data.php';

Then I create the page inside drupal GUI and in the content section I select my custom view from the module mentioned above. When I load the page it just shows nothing.

I've tried:

include("./files/data.php");

but with the same result.

PS: the files folder is in drupal root folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.