function taxonomy_redirect_get_php_filter in Taxonomy Redirect 6
Same name and namespace in other branches
- 5 taxonomy_redirect.module \taxonomy_redirect_get_php_filter()
Function that returns the format value of the PHP Code filter or zero if it doesn't exist.
4 calls to taxonomy_redirect_get_php_filter()
- taxonomy_redirect_redirects_form in ./
taxonomy_redirect.module - Redirects form
- taxonomy_redirect_redirects_form_validate in ./
taxonomy_redirect.module - Implementation of hook_validate for taxonomy_redirect_admin form.
- _taxonomy_redirect_exec_filter in ./
taxonomy_redirect.module - Function for executing PHP code entered into the path field. If PHP code is not selected the path is returned as is.
- _taxonomy_redirect_get_filters in ./
taxonomy_redirect.module - Returns the available filters for the path field.
File
- ./
taxonomy_redirect.module, line 291
Code
function taxonomy_redirect_get_php_filter() {
$phpfilter = 0;
$filters = taxonomy_redirect_get_all_filter_formats();
foreach ($filters as $filter) {
if ($filter->name == 'PHP code') {
$phpfilter = $filter->format;
}
}
return $phpfilter;
}