You are here

function variable_mobile_variable_realm_info in Variable Extra 7

Implements hook_variable_realm_info().

File

variable_mobile/variable_mobile.module, line 18
Internationalization (i18n) package. Multilingual variables API.

Code

function variable_mobile_variable_realm_info() {
  $realm['mobile'] = array(
    'title' => t('Mobile'),
    'weight' => 200,
    'controller class' => 'VariableMobileRealmController',
    'store class' => 'VariableStoreRealmStore',
    // Variables for this realm can be selected from a list.
    'select' => TRUE,
    'select path' => 'admin/config/system/browscap/variable',
    // Name for variables that belong to this realm: 'multilingual' variable/s
    'variable name' => t('mobile switch'),
    'variable class' => 'mobile-variable',
    // Automatically handle these variables in system settings forms.
    'form settings' => FALSE,
    'form switcher' => TRUE,
    'default key' => 'standard',
  );
  return $realm;
}