From 5295f3ca3c5a1c67f84e668f43ae21bb3baa7e16 Mon Sep 17 00:00:00 2001 From: Mark Carver Date: Fri, 13 Jun 2014 16:24:02 -0500 Subject: [PATCH] Issue #2156371 by Mark Carver | bdanin, mattsmith3: Fatal error: Call to undefined function _bootstrap_process_element() in /../public_html/includes/form.inc on line 1801. --- template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/template.php b/template.php index 89a4504..976e689 100755 --- a/template.php +++ b/template.php @@ -48,9 +48,11 @@ function bootstrap_theme(&$existing, $type, $theme, $path) { } /** - * Declare various hook_*_alter() hooks. + * Declare various hook_*_alter() hooks (only on Bootstrap based themes). * * hook_*_alter() implementations must live (via include) inside this file so * they are properly detected when drupal_alter() is invoked. */ -bootstrap_include('bootstrap', 'theme/alter.inc'); +if (in_array('bootstrap', _bootstrap_get_base_themes(NULL, TRUE))) { + bootstrap_include('bootstrap', 'theme/alter.inc'); +} -- 1.9.1