Skip to content

Instantly share code, notes, and snippets.

@sanglt
Created January 9, 2015 03:24
Show Gist options
  • Select an option

  • Save sanglt/0b48bcc60b0db58027bd to your computer and use it in GitHub Desktop.

Select an option

Save sanglt/0b48bcc60b0db58027bd to your computer and use it in GitHub Desktop.
Error : Call to undefined function purl_item_edit_validate()
diff --git a/purl.module b/purl.module
index 955b989..141ad10 100644
--- a/purl.module
+++ b/purl.module
@@ -98,7 +98,7 @@ function purl_form_alter(&$form, &$form_state, $form_id) {
case 'menu_edit_menu':
case 'menu_edit_item':
case 'redirect_edit_form':
- module_load_include('inc', 'purl', 'purl.admin');
+ form_load_include($form_state, 'inc', 'purl', 'purl.admin');
_purl_form_alter($form, $form_state, $form_id);
break;
case 'views_exposed_form':
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment