You are here

function _field_patterns_prepare_field in Patterns 7

Same name and namespace in other branches
  1. 7.2 patterns_components/components/field.inc \_field_patterns_prepare_field()
1 call to _field_patterns_prepare_field()
field_patterns_prepare in patterns_components/components/field.inc

File

patterns_components/components/field.inc, line 492
Patterns component for Fields.

Code

function _field_patterns_prepare_field($action, $data) {
  $data['field'] = array();
  foreach ($data['settings'] as $key => $setting) {
    $data['field']['settings'][$key] = $setting;
  }
  unset($data['settings']);
  return $data;
}