You are here

function domain_variable_variable_realm_info in Domain Variable 7

Implements hook_variable_realm_info().

File

./domain_variable.module, line 69
domain_variable Domain Variable: configuration extension Functions for the Domain Variable module.

Code

function domain_variable_variable_realm_info() {
  $realm['domain'] = array(
    'title' => t('Domain'),
    'weight' => 110,
    'controller class' => 'DomainVariableRealmController',
    'store class' => 'VariableStoreRealmStore',
    // Variables for this realm can be selected from a list.
    'select' => TRUE,
    'select path' => 'admin/structure/domain/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('domain'),
    // Class for variables that belong to this realm in settings forms.
    'variable class' => 'domain-variable',
  );
  return $realm;
}