You are here

function fz152_webform_get_forms in FZ152 7

Return forms to alter.

1 string reference to 'fz152_webform_get_forms'
fz152_webform_fz152_info in module/webform/fz152_webform.module
Implements hook_fz152_info().

File

module/webform/fz152_webform.module, line 50
Main file for hooks and custom functions. This module is provide integration with entityforms for fz152 module.

Code

function fz152_webform_get_forms() {
  $webforms = fz152_webform_get_webform_info();
  $result = array();
  if (!empty($webforms)) {
    foreach ($webforms as $webform) {
      $webform_id = $webform['id'];
      if (variable_get_value('fz152_webform_form_' . $webform_id . '_enable')) {
        $result[] = array(
          'form_id' => 'webform_client_form_' . $webform_id,
          'weight' => '',
        );
      }
    }
  }
  return $result;
}