You are here

public function PartyActivityElementTitle::formExtractValues in Party 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

1 call to PartyActivityElementTitle::formExtractValues()
PartyActivityElementTitle::formSubmit in modules/party_activity/includes/element/party_activity_title.element.inc
Submit the form element.

File

modules/party_activity/includes/element/party_activity_title.element.inc, line 59
Contains class for the Node title element.

Class

PartyActivityElementTitle
Class to add the node title field to a form.

Code

public function formExtractValues($form, &$form_state, $entity) {
  $parents = $form['#parents'];
  $parents[] = $this
    ->getEntityNamespace();
  $parents[] = 'title';
  $title = drupal_array_get_nested_value($form_state['values'], $parents);
  return $title;
}