Skip to content

Instantly share code, notes, and snippets.

Last active Nov 15, 2016
What would you like to do?
Issue #2563761: Call to undefined function bootstrap_form_process()
* Implements hook_init().
function MY_MODULE_init() {
module_invoke('bootstrap', 'element_info');
module_invoke('bootstrap', 'element_info_alter');
diff --git a/includes/ b/includes/
index c4a9677..60e18cf 100644
--- a/includes/
+++ b/includes/
@@ -76,7 +76,7 @@ function bootstrap_css_alter(&$css) {
* Implements hook_element_info_alter().
-function bootstrap_element_info_alter(&$info) {
+function bootstrap_element_info_alter(&$info = array()) {
global $theme_key;
$cid = "theme_registry:bootstrap:element_info";
* Creat a custom module & implement hook_init (See module example)
* Patch bootstrap theme using the patch.diff
Copy link

markhalliwell commented Nov 15, 2016

bootstrap isn't a module, so module_invoke('bootstrap', 'element_info') doesn't actually do anything.

And module_invoke('bootstrap', 'element_info_alter') is wrong, it should be drupal_alter('element_info') which is called for both modules and themes in 7.x.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment