summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/coder_6x.inc16
1 files changed, 15 insertions, 1 deletions
diff --git a/includes/coder_6x.inc b/includes/coder_6x.inc
index f23f444..0b2251a 100644
--- a/includes/coder_6x.inc
+++ b/includes/coder_6x.inc
@@ -183,7 +183,12 @@ function coder_6x_reviews() {
'#function' => '_submit$|_validate$',
'#value' => '\$form(_values)?\[[\'"][A-Za-z]',
'#warning' => 'use $form_state[\'values\'] instead, which is where the values are stored after a submit',
- )
+ ),
+ array(
+ '#type' => 'regex',
+ '#value' => '[\s\(]theme_get_function\s*\(',
+ '#warning_callback' => '_coder_6x_theme_get_function_warning',
+ ),
);
$review = array(
'#title' => t('Converting 5.x modules to 6.x'),
@@ -486,3 +491,12 @@ function _coder_6x_schema_api_warning() {
'#description' => t('This patch caused changes to the format of hook_install(), hook_uninstall(), and hook_update_N(). No longer are switch statements done on $GLOBALS[\'db_type\']; instead, use the variety of schema API functions to perform table manipulation.'),
);
}
+
+function _coder_6x_theme_get_function_warning() {
+ return t('!theme_get_function has been deprecated because of template theming; see !theme_get_registry',
+ array(
+ '!theme_get_function' => theme('drupalapi', 'theme_get_function', '5'),
+ '!theme_get_registry' => theme('drupalapi', 'theme_get_registry'),
+ )
+ );
+}