rest_requirements($phase)
Implements hook_requirements().
File
core/modules/rest/rest.install, line 14 Install, update and uninstall functions for the rest module.
Code
function rest_requirements($phase) {
$requirements = array();
if (version_compare(PHP_VERSION, '5.6.0', '>=') && version_compare(PHP_VERSION, '7', '<') && ini_get('always_populate_raw_post_data') != -1) {
$requirements['always_populate_raw_post_data'] = array(
'title' => t('always_popula