summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-08-21 17:28:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-08-21 17:28:27 +0000
commitbc23bfaa11d6a8d40bb12812cfa081b9c5d9b672 (patch)
tree4e10d49f90c64513d1bddb2ea347ce55de32c11f /modules/php
parent0d9816b8fd1eb1982cfda4ec11f566aab09571ac (diff)
downloadbrdo-bc23bfaa11d6a8d40bb12812cfa081b9c5d9b672.tar.gz
brdo-bc23bfaa11d6a8d40bb12812cfa081b9c5d9b672.tar.bz2
- Patch #546350 by dropcube: remove hardcoded numeric deltas from hook_filter_info().
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.install2
-rw-r--r--modules/php/php.module4
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/php/php.install b/modules/php/php.install
index 7491d2c05..d378c1722 100644
--- a/modules/php/php.install
+++ b/modules/php/php.install
@@ -29,7 +29,7 @@ function php_install() {
->fields(array(
'format' => $format,
'module' => 'php',
- 'delta' => 0,
+ 'name' => 'php_code',
'weight' => 0,
))
->execute();
diff --git a/modules/php/php.module b/modules/php/php.module
index 8552c15ff..86e8d5d43 100644
--- a/modules/php/php.module
+++ b/modules/php/php.module
@@ -127,8 +127,8 @@ else {
*/
function php_filter_info() {
return array(
- array(
- 'name' => t('PHP evaluator'),
+ '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',