function feeds_include in Feeds 6
Includes a feeds module include file.
Parameters
$file: The filename without the .inc extension.
$directory: The directory to include the file from. Do not include files from libraries directory. Use feeds_include_library() instead
Related topics
4 calls to feeds_include()
- FeedsDataProcessor::handler in plugins/
FeedsDataProcessor.inc - Return a data handler for this table.
- feeds_importer in ./
feeds.module - Gets an importer instance.
- feeds_plugin_instance in ./
feeds.module - Gets an instance of a class for a given plugin and id.
- feeds_source in ./
feeds.module - Gets an instance of a source object.
File
- ./
feeds.module, line 894 - Feeds - basic API functions and hook implementations.
Code
function feeds_include($file, $directory = 'includes') {
static $included = array();
if (!isset($included[$file])) {
require './' . drupal_get_path('module', 'feeds') . "/{$directory}/{$file}.inc";
}
$included[$file] = TRUE;
}