Closed (fixed)
Project:
Mobile Tools
Version:
7.x-3.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Jul 2012 at 02:06 UTC
Updated:
16 Jul 2012 at 13:06 UTC
I got following error during playing with mobile tools. When i am tried to create new device group (admin/config/system/mobile-tools/add). i got following error.
Fatal error: Call to undefined function ctools_export_crud_new() in /var/www/drupal/sites/all/modules/contrib/mobile_tools/mobile_tools.module on line 608
Here is solution
<?php
function _mobile_tools_empty_device_group() {
// Use the CTools export API to create an empty object
$device_group = ctools_export_crud_new('mobile_tools_device_group');
return $device_group;
}
?>
Replace with following
<?php
function _mobile_tools_empty_device_group() {
// Use the CTools export API to create an empty object
ctools_include('export');
$device_group = ctools_export_crud_new('mobile_tools_device_group');
return $device_group;
}
?>
Comments
Comment #1
minoroffense commentedThanks!
Committed the fix.