You are here

function fz152_webform_variable_info in FZ152 7

Implements hook_variable_info().

File

module/webform/fz152_webform.variable.inc, line 24
Variable module hooks.

Code

function fz152_webform_variable_info($options) {
  $variables = array();
  $webform_forms = fz152_webform_get_webform_info();
  if (!empty($webform_forms)) {
    foreach ($webform_forms as $form) {
      $variables['fz152_webform_form_' . $form['id'] . '_enable'] = array(
        'type' => 'boolean',
        'title' => $form['label'],
        'default' => FALSE,
        'group' => 'fz152_webform',
        'localize' => TRUE,
      );
    }
  }
  return $variables;
}