2

The hosting provider I user for my site disabled the phpinfo() function and, as consequence, the link that would normally appear in the status report page is not anymore shown, replaced by a warning message.

I would like to create a custom module to remove that message, and show a link to a page that, similarly to the page shown by phpinfo(), reports information about PHP and the enabled extensions.
Is there a way to alter the information about PHP system_requirements() normally shows in that page?

  • No, we don't have a hook_requirements_alter(). That would do a nice feature request. – Damien Tournoud Mar 30 '11 at 8:31
3

You may not be able to alter the system_requirements array directly, but you can hack around it in the theme layer by implementing theme_status_report.

 theme('status_report', array('requirements' => $requirements));
  • In a module you can use hook_preprocess_status_report – AdamS Mar 21 '17 at 20:04

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.