function multifield_type_has_fields in Multifield 7
Same name and namespace in other branches
- 7.2 multifield.module \multifield_type_has_fields()
Check if a multifield has fields created from it.
Parameters
string $machine_name: The machine name of the multifield.
Return value
bool TRUE if the multifield has instances, or FALSE otherwise.
2 calls to multifield_type_has_fields()
File
- ./
multifield.module, line 236
Code
function multifield_type_has_fields($machine_name) {
return in_array($machine_name, multifield_get_fields());
}