public function FlexiformElementNodePromote::formExtractValues in Flexiform 7
Extract the submitted values for this form element.
Overrides FlexiformElement::formExtractValues
1 call to FlexiformElementNodePromote::formExtractValues()
- FlexiformElementNodePromote::formSubmit in includes/
element/ node_promote.element.inc - Submit the form element.
File
- includes/
element/ node_promote.element.inc, line 47 - Contains class for the Node promote element.
Class
- FlexiformElementNodePromote
- Class to add the node promote field to a form.
Code
public function formExtractValues($form, &$form_state, $entity) {
$parents = $form['#parents'];
$parents[] = $this
->getEntityNamespace();
$parents[] = 'promote';
return drupal_array_get_nested_value($form_state['values'], $parents);
}