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

minoroffense’s picture

Status: Active » Closed (fixed)

Thanks!

Committed the fix.