protected function FeedImportProcessor::hasContent in Feed Import 7.3
Checks if a variable has content
Parameters
mixed &$var: Variable to check
Return value
bool TRUE if there is content FALSE otherwise
1 call to FeedImportProcessor::hasContent()
- FeedImportProcessor::createEntity in feed_import_base/
inc/ feed_import.inc - Creates a new entity.
File
- feed_import_base/
inc/ feed_import.inc, line 1153 - This file contains Feed Import helpers.
Class
- FeedImportProcessor
- Class that processess the import.
Code
protected function hasContent(&$var) {
if (is_scalar($var)) {
return (string) $var !== '';
}
return !empty($var);
}