You are here

function og_variables_variable_realm_info in OG Variables 7

Implements hook_variable_realm_info().

File

./og_variables.module, line 20
Per space management of variables.

Code

function og_variables_variable_realm_info() {
  $realm['og'] = array(
    'title' => t('Organic Group'),
    'weight' => 200,
    'controller class' => 'OgVariableRealm',
    'store class' => 'OgVariableStoreRealmStore',
    // Name for variables that belong to this realm: 'multilingual' variable/s
    'variable name' => t('group'),
    'variable class' => 'og-variable',
    // Automatically handle these variables in system settings forms.
    'select' => TRUE,
  );
  return $realm;
}