You are here

function environment_indicator_variable_variable_realm_info in Environment Indicator 7.2

Implements hook_variable_realm_info().

File

environment_indicator_variable/environment_indicator_variable.module, line 39
Module implementation file.

Code

function environment_indicator_variable_variable_realm_info() {
  $realm['environment'] = array(
    'title' => t('Environment'),
    'weight' => 108,
    'controller class' => 'EnvironmentVariableRealmController',
    'store class' => 'VariableStoreRealmStore',
    // Variables for this realm can be selected from a list.
    'select' => TRUE,
    'select path' => 'admin/config/development/environment-indicator/variables',
    // Automatically handle these variables in system settings forms.
    // If this option is enabled we'll need the rest of the values
    'form settings' => TRUE,
    'form switcher' => TRUE,
    // Name for variables that belong to this realm: 'domain' variable/s
    'variable name' => t('environment'),
    // Class for variables that belong to this realm in settings forms
    'variable class' => 'environment-variable',
  );
  return $realm;
}