You are here

function entity_ui_controller_form_submit in Entity API 7

Submit callback for forms implemented by the UI controller.

1 string reference to 'entity_ui_controller_form_submit'
entity_ui_form_defaults in includes/entity.ui.inc
Form wrapper callback for all entity ui forms.

File

includes/entity.ui.inc, line 723
Provides a controller for building an entity overview form.

Code

function entity_ui_controller_form_submit($form, &$form_state) {

  // Remove 'entity_ui_' prefix and the '_form' suffix.
  $base = substr($form_state['build_info']['base_form_id'], 10, -5);
  $method = $base . 'FormSubmit';
  entity_ui_controller($form_state['entity_type'])
    ->{$method}($form, $form_state);
}