Load ctools export first before checking for ctools_export_crud_load_multiple. #15061...
authorKaroly Negyesi
Mon, 28 May 2012 05:39:00 +0000 (22:39 -0700)
committerKaroly Negyesi
Mon, 28 May 2012 05:39:00 +0000 (22:39 -0700)
relation.module

index ac29855..1a9c745 100644 (file)
@@ -452,8 +452,10 @@ function relation_type_load($relation_type) {
  *   relation_type_save(), keyed by relation_type.
  */
 function relation_get_types($types = array()) {
-  if (function_exists('ctools_export_crud_load_multiple')) {
+  if (module_exists('ctools')) {
     ctools_include('export');
+  }
+  if (function_exists('ctools_export_crud_load_multiple')) {
     $relation_types = $types ? ctools_export_crud_load_multiple('relation_type', $types) : ctools_export_crud_load_all('relation_type');
     static $recurse = FALSE;
     if (!$recurse) {