protected static function FeedImport::checkFunctions in Feed Import 7
Same name and namespace in other branches
- 7.2 feed_import.inc.php \FeedImport::checkFunctions()
Checks if entity functions exists
Parameters
string $entity: Entity name
Return value
bool TRUE if function exists, FALSE otherwise
1 call to FeedImport::checkFunctions()
- FeedImport::processFeed in ./
feed_import.inc.php - This function is choosing process function and executes it
File
- ./
feed_import.inc.php, line 771 - Feed import class for parsing and processing content
Class
- FeedImport
- @file Feed import class for parsing and processing content
Code
protected static function checkFunctions($entity) {
self::$functionSave = $entity . '_save';
self::$functionLoad = $entity . '_load';
if (!function_exists(self::$functionSave) || !function_exists(self::$functionLoad)) {
drupal_set_message(t('Could not find @func _save()/_load() function!', array(
'@func' => $entity,
)), 'error');
return FALSE;
}
return TRUE;
}