function om_tools_settings in OM Tools 6.2
Same name and namespace in other branches
- 8.2 inc/om_tools.admin.inc \om_tools_settings()
- 8 om_tools.module \om_tools_settings()
- 6 om_tools.module \om_tools_settings()
- 7.2 inc/om_tools.admin.inc \om_tools_settings()
- 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', '');
//dsm($current_values);
$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);
}
}
}