function feeds_para_mapper_is_empty in Feeds Paragraphs 7
Checks whether the values are empty.
Parameters
array $values: The values
Return value
bool True if the values are empty.
1 call to feeds_para_mapper_is_empty()
- feeds_para_mapper_set_target in ./
feeds_para_mapper.module - Sets the values for the target field.
File
- ./
feeds_para_mapper.module, line 527 - Allows feeds to import content to Paragraphs' fields.
Code
function feeds_para_mapper_is_empty($values) {
$emptyValues = 0;
foreach ($values as $value) {
if (!strlen($value)) {
$emptyValues++;
}
}
return $emptyValues === count($values);
}