function _eminline_curry in Embedded Media Field 5
Same name and namespace in other branches
- 6.3 contrib/eminline/eminline.module \_eminline_curry()
- 6 contrib/eminline/eminline.module \_eminline_curry()
- 6.2 contrib/eminline/eminline.module \_eminline_curry()
1 call to _eminline_curry()
- _eminline_url in contrib/
eminline/ eminline.module - Match all http(s) URLs and pass to link checker.
File
- contrib/
eminline/ eminline.module, line 245
Code
function _eminline_curry($func, $arity) {
return create_function('', "\n \$args = func_get_args();\n if(count(\$args) >= {$arity})\n return call_user_func_array('{$func}', \$args);\n \$args = var_export(\$args, 1);\n return create_function('','\n \$a = func_get_args();\n \$z = ' . \$args . ';\n \$a = array_merge(\$z,\$a);\n return call_user_func_array(\\'{$func}\\', \$a);\n ');\n ");
}