How can I remove "Show row weights" as well as the weight column in D7? This answer shows how to remove the "Show row weights" text from a form. However, as the comment to this answer suggests, it doesn't remove the weight column as well.

How can I update the following code to also remove the weight column from my form?

&lt;?php
/**
 * Implements hook_js_alter().
 */
function MODULENAME_js_alter(&amp;$javascript) {
  unset($javascript['misc/tabledrag.js']);
}
?&gt;


Or, is there a better way to do this? This seems like a hacked way of removing the row weights.
If you do not want to display those elements because it confuses users, you could simply hide them with CSS. Use Firebug or something alike to determine the correct classes in order to adapt the code underneath.

#YOUR-FORM-ID .tabledrag-toggle-weight-wrapper,
#YOUR-FORM-ID .field-multiple-drag {
  display: none;
}