function multifield_extract_multifield_machine_name in Multifield 7.2
Same name and namespace in other branches
- 7 multifield.module \multifield_extract_multifield_machine_name()
Determine the multifield type given a field.
18 calls to multifield_extract_multifield_machine_name()
- multifield_devel_generate in ./
multifield.devel_generate.inc - Implements hook_devel_generate().
- multifield_features_pipe_field_base_alter in ./
multifield.features.inc - Implements hook_features_pipe_COMPONENT_alter().
- multifield_field_access in ./
multifield.field.inc - Implements hook_field_access().
- multifield_field_attach_form in ./
multifield.field.inc - Implements hook_field_attach_form().
- multifield_field_create_field in ./
multifield.module - Implements hook_field_create_field().
File
- ./
multifield.module, line 640
Code
function multifield_extract_multifield_machine_name(array $field) {
if ($field['type'] == 'multifield') {
return $field['field_name'];
}
elseif ($field['module'] == 'multifield') {
return $field['type'];
}
}