summaryrefslogtreecommitdiff
path: root/modules/php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2008-12-03 16:32:22 +0000
committerDries Buytaert <dries@buytaert.net>2008-12-03 16:32:22 +0000
commitcadd9bd54ca9b3e5a95661c616d35a1a0045ab46 (patch)
tree6594d689ccf40b86fc16cf7f628ef06fa7ee50c7 /modules/php
parent5c72eb294ab1527b8da1b261cfbffeeb7ff98c9f (diff)
downloadbrdo-cadd9bd54ca9b3e5a95661c616d35a1a0045ab46.tar.gz
brdo-cadd9bd54ca9b3e5a95661c616d35a1a0045ab46.tar.bz2
- Patch #335086 by recidive: rename node, filter and comment module tables to singular for consistency. Oh my.
Diffstat (limited to 'modules/php')
-rw-r--r--modules/php/php.install8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/php/php.install b/modules/php/php.install
index 04c11eef4..e65607019 100644
--- a/modules/php/php.install
+++ b/modules/php/php.install
@@ -5,17 +5,17 @@
* Implementation of hook_install().
*/
function php_install() {
- $format_exists = db_result(db_query("SELECT COUNT(*) FROM {filter_formats} WHERE name = 'PHP code'"));
+ $format_exists = db_result(db_query("SELECT COUNT(*) FROM {filter_format} WHERE name = 'PHP code'"));
// Add a PHP code input format, if it does not exist. Do this only for the
// first install (or if the format has been manually deleted) as there is no
// reliable method to identify the format in an uninstall hook or in
// subsequent clean installs.
if (!$format_exists) {
- db_query("INSERT INTO {filter_formats} (name, roles, cache) VALUES ('PHP code', '', 0)");
- $format = db_result(db_query("SELECT MAX(format) FROM {filter_formats}"));
+ db_query("INSERT INTO {filter_format} (name, roles, cache) VALUES ('PHP code', '', 0)");
+ $format = db_result(db_query("SELECT MAX(format) FROM {filter_format}"));
// Enable the PHP evaluator filter.
- db_query("INSERT INTO {filters} (format, module, delta, weight) VALUES (%d, 'php', 0, 0)", $format);
+ db_query("INSERT INTO {filter} (format, module, delta, weight) VALUES (%d, 'php', 0, 0)", $format);
drupal_set_message(t('A !php-code input format has been created.', array('!php-code' => l('PHP code', 'admin/settings/filters/' . $format))));
}