function field_collection_field_collection_from_field_edit_form in Field collection 7
Settings form.
1 string reference to 'field_collection_field_collection_from_field_edit_form'
- field_collection_from_field.inc in ctools/
relationships/ field_collection_from_field.inc - Plugin to provide a relationship handler for a field collection field.
File
- ctools/
relationships/ field_collection_from_field.inc, line 101 - Plugin to provide a relationship handler for a field collection field.
Code
function field_collection_field_collection_from_field_edit_form($form, &$form_state) {
$conf = $form_state['conf'];
$form['delta'] = array(
'#type' => 'textfield',
'#title' => t('Delta'),
'#size' => 3,
'#description' => t('The relationship can only create one context, but multiple items can be related. Please type in the number you want. The first one will be 0. Use negative delta to get items from the end. The last item will be -1'),
'#default_value' => empty($conf['delta']) ? 0 : $conf['delta'],
);
return $form;
}