You are here

function _rest_server_settings_not_zero in Services 7.3

Same name and namespace in other branches
  1. 6.3 servers/rest_server/rest_server.inc \_rest_server_settings_not_zero()

Utility function intended for use with array_map to change everything that isn't === 0 into TRUE.

Parameters

string $value: The value to map.

Return value

bool FALSE if the $value is === 0 otherwise TRUE is returned.

1 string reference to '_rest_server_settings_not_zero'
_rest_server_settings_submit in servers/rest_server/rest_server.inc
Submit handler for the services REST server settings form.

File

servers/rest_server/rest_server.inc, line 86
Autoload classes and server settings.

Code

function _rest_server_settings_not_zero($value) {
  return $value !== 0;
}