You are here

function weight_settings_page in Weight 5

1 string reference to 'weight_settings_page'
weight_menu in ./weight.module
Implementation of hook_menu().

File

./weight.module, line 273

Code

function weight_settings_page() {
  if ($_POST['op'] == t('Update')) {
    $weight_range = check_plain($_POST['weight_range']);
    $weight_node_types = array_keys($_POST['weight_node_types']);
    $weight_use_menu = $_POST['weight_use_menu'];
    variable_set('weight_range', $weight_range);
    variable_set('weight_node_types', $weight_node_types);
    variable_set('weight_use_menu', $weight_use_menu);
    drupal_set_message(t('Settings updated.'));
  }
  $output .= drupal_get_form('weight_settings_form');
  return $output;
}