You are here

function _asaf_get_form_constructor in Asaf (ajax submit for any form) 8

Same name and namespace in other branches
  1. 7 asaf.module \_asaf_get_form_constructor()
1 call to _asaf_get_form_constructor()
_asaf_get_form_parent_module in ./asaf.module

File

./asaf.module, line 616
Main module file.

Code

function _asaf_get_form_constructor($form_id, $form_state) {
  if (!function_exists($form_id) && isset($form_state['build_info']['base_form_id'])) {
    $form_id = $form_state['build_info']['base_form_id'];
  }
  return function_exists($form_id) ? $form_id : FALSE;
}