You are here

function fz152_variable_info in FZ152 7

Implements hook_variable_info().

File

./fz152.variable.inc, line 36
Variable module hooks.

Code

function fz152_variable_info($options) {

  // FZ152 settings variables.
  $variables['fz152_enable'] = array(
    'type' => 'boolean',
    'title' => t('Enable functionality', array(), $options),
    'default' => TRUE,
    'description' => t('You can disable this functionality for different languages.', array(), $options),
    'group' => 'fz152_settings',
    'localize' => TRUE,
  );
  $variables['fz152_is_checkbox'] = array(
    'type' => 'boolean',
    'title' => t('Show with checkbox', array(), $options),
    'default' => TRUE,
    'description' => t('If checked, text will be printed in form with checkbox.', array(), $options),
    'group' => 'fz152_settings',
    'localize' => TRUE,
  );
  $variables['fz152_checkbox_title'] = array(
    'type' => 'text',
    'title' => t('Checkbox title', array(), $options),
    'default' => format_string('Я даю согласие на <a href="@href" target="_blank" rel="nofollow">обработку моих персональных данных</a>.', array(
      '@href' => '/privacy-policy',
    )),
    'required' => TRUE,
    'group' => 'fz152_settings',
    'localize' => TRUE,
  );
  $variables['fz152_privacy_policy_page_enable'] = array(
    'type' => 'boolean',
    'title' => t('Enable privacy policy page', array(), $options),
    'default' => TRUE,
    'description' => t('You can disable this page, if you have manually created.', array(), $options),
    'group' => 'fz152_privacy_policy_page',
    'localize' => TRUE,
  );
  $variables['fz152_privacy_policy_page_title'] = array(
    'type' => 'string',
    'title' => t('Privacy policy page title', array(), $options),
    'default' => 'Положение о защите персональных данных',
    'required' => TRUE,
    'group' => 'fz152_privacy_policy_page',
    'localize' => TRUE,
  );
  $variables['fz152_privacy_policy_page_path'] = array(
    'type' => 'string',
    'title' => t('Privacy policy page path', array(), $options),
    'description' => t('Without leading trailing slash. Be careful, it can override existing path.'),
    'default' => 'privacy-policy',
    'required' => TRUE,
    'group' => 'fz152_privacy_policy_page',
    'localize' => TRUE,
  );
  $variables['fz152_privacy_policy_page_text'] = array(
    'type' => 'text_format',
    'title' => t('Privacy policy text', array(), $options),
    'default' => array(
      'value' => _fz152_get_default_privacy_policy_agreement(),
      'format' => filter_default_format(),
    ),
    'required' => TRUE,
    'group' => 'fz152_privacy_policy_page',
    'localize' => TRUE,
  );

  // FZ152 form variables.
  $variables['fz152_forms'] = array(
    'type' => 'text',
    'title' => t('Forms to apply checkbox', array(), $options),
    'description' => t('Each form id on the new line, this names are supports wildcard: *_node_form. Also you can specify weight for checkbox: node_edit_news|99.'),
    'default' => '',
    'group' => 'fz152_forms',
    'localize' => TRUE,
  );
  return $variables;
}