public function FlexiformElementUserRoles::formSubmit in Flexiform 7
Submit the form element.
Overrides FlexiformElement::formSubmit
File
- includes/
element/ user_roles.element.inc, line 52 - Contains class for the User roles element.
Class
- FlexiformElementUserRoles
- Class to add the node title field to a form.
Code
public function formSubmit($form, &$form_state, $entity, $language = LANGUAGE_NONE) {
$roles = $this
->formExtractValues($form, $form_state, $entity);
$entity->roles = $roles;
}