You are here

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

Same name and namespace in other branches
  1. 8 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 609

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;
}