You are here

function fz152_entityform_variable_info in FZ152 7

Implements hook_variable_info().

File

module/entityform/fz152_entityform.variable.inc, line 24
Variable module hooks.

Code

function fz152_entityform_variable_info($options) {
  $variables = array();
  $entityform_forms = fz152_entityform_get_entityform_bundle_info();
  if (!empty($entityform_forms)) {
    foreach ($entityform_forms as $form) {
      $variables['fz152_entityform_form_' . $form['name'] . '_enable'] = array(
        'type' => 'boolean',
        'title' => $form['label'],
        'default' => FALSE,
        'group' => 'fz152_entityform',
        'localize' => TRUE,
      );
      $variables['fz152_entityform_form_' . $form['name'] . '_weight'] = array(
        'type' => 'number',
        'title' => $form['label'] . ': checkbox weight',
        'default' => '',
        'group' => 'fz152_entityform',
        'localize' => TRUE,
      );
    }
  }
  return $variables;
}