You are here

function piwik_variable_info in Piwik Web Analytics 7.2

Implements hook_variable_info().

File

./piwik.variable.inc, line 11
Definition of variables for Variable API module.

Code

function piwik_variable_info($options) {
  $variables['piwik_site_id'] = array(
    'type' => 'string',
    'title' => t('Piwik site ID', array(), $options),
    'default' => '',
    'description' => t('The user account number is unique to the websites domain. Click the <strong>Settings</strong> link in your Piwik account, then the <strong>Websites</strong> tab and enter the appropriate site <strong>ID</strong> into this field.'),
    'required' => TRUE,
    'group' => 'piwik',
    'localize' => TRUE,
    'multidomain' => TRUE,
    'validate callback' => 'piwik_validate_piwik_site_id',
  );
  return $variables;
}