function weight_disable_page in Weight 5
1 string reference to 'weight_disable_page'
- weight_menu in ./
weight.module - Implementation of hook_menu().
File
- ./
weight.module, line 253
Code
function weight_disable_page() {
if ($_POST['op'] == t('Remove weights')) {
weight_disable();
drupal_goto('admin/modules');
}
$output .= t('<p>Before disabling the weight module, you will want to click
this button to change the database back to Drupal\'s conventional sticky
system.</p> <p><strong>NOTE: Clicking this button will erase any node weights
that have been set.</strong></p>');
$output .= drupal_get_form('weight_disable_form');
return $output;
}