function entityreference_field_settings_form in Entity reference 7
Same name and namespace in other branches
- 8 entityreference.module \entityreference_field_settings_form()
Implements hook_field_settings_form().
File
- ./
entityreference.module, line 402 - Entityreference primary module file.
Code
function entityreference_field_settings_form($field, $instance, $has_data) {
// The field settings infrastructure is not AJAX enabled by default,
// because it doesn't pass over the $form_state.
// Build the whole form into a #process in which we actually have access
// to the form state.
$form = array(
'#type' => 'container',
'#attached' => array(
'css' => array(
drupal_get_path('module', 'entityreference') . '/entityreference.admin.css',
),
),
'#process' => array(
'_entityreference_field_settings_process',
'_entityreference_field_settings_ajax_process',
),
'#element_validate' => array(
'_entityreference_field_settings_validate',
),
'#field' => $field,
'#instance' => $instance,
'#has_data' => $has_data,
);
return $form;
}