You are here

function multifield_field_create_field in Multifield 7

Same name and namespace in other branches
  1. 7.2 multifield.module \multifield_field_create_field()

Implements hook_field_create_field().

File

./multifield.module, line 324

Code

function multifield_field_create_field($field) {
  if ($machine_name = multifield_extract_multifield_machine_name($field)) {
    if ($field['type'] == 'multifield') {
      field_attach_create_bundle('multifield', $machine_name);
    }
    multifield_cache_clear();
  }
}