You are here

public function FlexiformElementUserRoles::formExtractValues in Flexiform 7

Extract the submitted values for this form element.

Overrides FlexiformElement::formExtractValues

1 call to FlexiformElementUserRoles::formExtractValues()
FlexiformElementUserRoles::formSubmit in includes/element/user_roles.element.inc
Submit the form element.

File

includes/element/user_roles.element.inc, line 60
Contains class for the User roles element.

Class

FlexiformElementUserRoles
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[] = 'roles';
  $roles = drupal_array_get_nested_value($form_state['values'], $parents);
  return $roles;
}