You are here

function om_tools_settings in OM Tools 8.2

Same name and namespace in other branches
  1. 8 om_tools.module \om_tools_settings()
  2. 6.2 inc/om_tools.admin.inc \om_tools_settings()
  3. 6 om_tools.module \om_tools_settings()
  4. 7.2 inc/om_tools.admin.inc \om_tools_settings()
  5. 7 om_tools.module \om_tools_settings()

OM Tools requires tools dynamically

1 call to om_tools_settings()
om_tools_admin in inc/om_tools.admin.inc
Admin Form - Simple Editing

File

inc/om_tools.admin.inc, line 55
OM Tools Admin Configuration

Code

function om_tools_settings(&$form, $module = NULL) {
  $current_values = variable_get('om_tools', '');
  $default_values = isset($current_values[$module]) ? $current_values[$module] : '';
  if (module_exists($module)) {
    include_once drupal_get_path('module', 'om_tools') . '/tools/' . $module . '/' . $module . '.inc';
    $function = 'om_' . $module . '_tools';
    if (function_exists($function)) {
      return $function($form, $default_values);
    }
  }
}