function _pathfilter_curry in Path Filter 6
Same name and namespace in other branches
- 5.2 pathfilter.module \_pathfilter_curry()
- 5 pathfilter.module \_pathfilter_curry()
- 6.2 pathfilter.module \_pathfilter_curry()
- 7 pathfilter.module \_pathfilter_curry()
1 call to _pathfilter_curry()
- pathfilter_filter in ./
pathfilter.module - Implementation of hook_filter().
File
- ./
pathfilter.module, line 91 - This filter takes internal Drupal paths in double quotes, written as e.g. "internal:node/99", and replaces them with the appropriate absolute http URL using Drupal's url() function [1]. E.g. for a site located at http://example.com/mysite
Code
function _pathfilter_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 ");
}