You are here

function fz152_entityform_get_forms in FZ152 7

Return forms to alter.

1 string reference to 'fz152_entityform_get_forms'
fz152_entityform_fz152_info in module/entityform/fz152_entityform.module
Implements hook_fz152_info().

File

module/entityform/fz152_entityform.module, line 49
Main file for hooks and custom functions. This module is provide integration with entityforms for fz152 module.

Code

function fz152_entityform_get_forms() {
  $entityforms = fz152_entityform_get_entityform_bundle_info();
  $result = array();
  if (!empty($entityforms)) {
    foreach ($entityforms as $entityform) {
      $entityform_name = $entityform['name'];
      if (variable_get_value('fz152_entityform_form_' . $entityform_name . '_enable')) {
        $result[] = array(
          'form_id' => $entityform_name . '_entityform_edit_form',
          'weight' => variable_get_value('fz152_entityform_form_' . $entityform_name . '_weight'),
        );
      }
    }
  }
  return $result;
}