summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-26 10:17:54 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-26 10:17:54 +0000
commit7598362003c4ad6fb2b3ea407a9e9589c23db50c (patch)
tree3f370f8a4af5c5c85a29568b75ca6ffd40d58a4e /modules/php
parentab45151748e6a1f4a1f93bcc0c0e3c1f5c950447 (diff)
downloadbrdo-7598362003c4ad6fb2b3ea407a9e9589c23db50c.tar.gz
brdo-7598362003c4ad6fb2b3ea407a9e9589c23db50c.tar.bz2
- Patch #546336 by sun, dropcube: code clean-up and documentation improvements for the filter hooks.
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.module22
1 files changed, 8 insertions, 14 deletions
diff --git a/modules/php/php.module b/modules/php/php.module
index 86e8d5d43..4dd23f5ea 100644
--- a/modules/php/php.module
+++ b/modules/php/php.module
@@ -6,7 +6,6 @@
* Additional filter for PHP input.
*/
-
/**
* Implement hook_help().
*/
@@ -120,22 +119,17 @@ else {
/**
* Implement hook_filter_info().
- *
- * Contains a basic PHP evaluator.
*
- * Executes PHP code. Use with care.
+ * Provide PHP code filter. Use with care.
*/
function php_filter_info() {
- return array(
- 'php_code' => array(
- 'title' => t('PHP evaluator'),
- 'description' => t('Executes a piece of PHP code. The usage of this filter should be restricted to administrators only!'),
- 'cache' => FALSE,
- 'process callback' => 'php_eval',
- 'tips callback' => '_php_filter_tips'
- )
+ $filters['php_code'] = array(
+ 'title' => t('PHP evaluator'),
+ 'description' => t('Executes a piece of PHP code. The usage of this filter should be restricted to administrators only!'),
+ 'process callback' => 'php_eval',
+ 'tips callback' => '_php_filter_tips',
+ 'cache' => FALSE,
);
+ return $filters;
}
-
-