You are here

function vertical_tabs_get_config in Vertical Tabs 6

3 calls to vertical_tabs_get_config()
vertical_tabs_add_node_type_options in ./vertical_tabs.admin.inc
vertical_tabs_form_alter in ./vertical_tabs.module
Implements hook_form_alter().
vertical_tabs_form_configure in ./vertical_tabs.module

File

./vertical_tabs.module, line 217
Provides vertical tabs capability for fieldsets in forms.

Code

function vertical_tabs_get_config($form_id = NULL) {
  static $config;
  if (!isset($config)) {
    $config = array();
    $config += variable_get('vertical_tabs_forms', array());
    $config += vertical_tabs_get_default_config();
  }
  if (isset($form_id)) {
    return isset($config[$form_id]) ? $config[$form_id] : NULL;
  }
  else {
    return $config;
  }
}