Error: Call to undefined function in inc file I searched for an explanation to this issue but didn't find anything. I have other sites where this is working but not in this one.
So, my module info file (draws.module):
name = draws
description = Draws custom module
package = Draws Modules
core = 7.x

files[] = draws.fixturesSavings.inc

In my draws.module I have this function (lines 289 to 231):
function saveToDatabase($response) {
    fixtures_saveToDatabase($response);
}

And then in the same folder of my draws.module I have the inc file (draws.fixturesSaving.inc):
&lt;?php
function fixtures_saveToDatabase($response) {

And when I call function saveToDatabase, I get the following error:
Error: Call to undefined function fixtures_saveToDatabase() in saveToDatabase() (line 290 of /home/.../sites/all/modules/custom/draws/draws.module).

What am I doing wrong here?
files (Optional)
Drupal supports a dynamic-loading code registry. To support it, all
modules must declare any code files containing class or interface
declarations in the .info file, like so:
name = Really Neat Widget
...
files[] = tests/example.test

When a module is enabled, Drupal will rescan all declared files and
index all the classes and interfaces that it finds. Classes will be loaded automatically by PHP when they are first accessed.
Currently this mechanism does not natively support namespaced classes.
Source: Writing module .info files (Drupal 7.x)

This approach only works with Object Oriented PHP. You would have to create a class.
If you want to keep with your current approach, add this to the top of the draws.module file after the &lt;?php open tag.
module_load_include('inc', 'draws', 'draws.fixturesSavings');