From 7598362003c4ad6fb2b3ea407a9e9589c23db50c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 26 Aug 2009 10:17:54 +0000 Subject: - Patch #546336 by sun, dropcube: code clean-up and documentation improvements for the filter hooks. --- modules/php/php.module | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'modules/php') 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; } - - -- cgit v1.2.3