function purl_get_processor in Persistent URL 6
Same name and namespace in other branches
- 7 purl.module \purl_get_processor()
Factory function to ease instantiation of processor classes.
3 calls to purl_get_processor()
- purl_form in ./
purl.module - Generates a persistent url form element that can be dropped into a FormAPI form array. Includes validation, but insert/update must be handled by the implementing submit handler.
- purl_generate_rewrite_elements in ./
purl.module - Generate a purl_path_element for provider
- purl_get_normal_path in ./
purl.module - Process a query string into its respective processors and modifiers and return the adjusted query string. If true, the $activate argument is used to call provider callbacks for a given query string. All values are static cached for a given query…
File
- ./
purl.module, line 903
Code
function purl_get_processor($method) {
static $processors;
if (!isset($processors[$method])) {
ctools_include('plugins');
$class = ctools_plugin_load_class('purl', 'processor', $method, 'handler');
$processors[$method] = new $class();
}
return isset($processors[$method]) ? $processors[$method] : NULL;
}