You are here

function multifield_type_has_fields in Multifield 7.2

Same name and namespace in other branches
  1. 7 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()
MultifieldUnitTestCase::testDeprecatedField in tests/MultifieldUnitTestCase.test
MultifieldUnitTestCase::testMultifieldField in tests/MultifieldUnitTestCase.test

File

./multifield.module, line 236

Code

function multifield_type_has_fields($machine_name) {
  return in_array($machine_name, multifield_get_fields());
}