function _elysia_cron_function_available in Elysia Cron 7.2
Check if function available to use.
Some native php function can be disabled by configuration, to avoid a lot of notices we check availability of such functions.
Parameters
string $func: Function to check.
Return value
bool TRUE if function available for use, FALSE otherwise.
1 call to _elysia_cron_function_available()
- elysia_cron_prepare_run in ./
elysia_cron.module - Prepare system for a cron execution.
File
- ./
elysia_cron.module, line 1995
Code
function _elysia_cron_function_available($func) {
$disabled = explode(',', ini_get('disable_functions'));
return !in_array($func, $disabled);
}