When I installed Modules wight module try to update my custom module weight. I found admin menu lost favicon in left top corner, and browser can't load admin_menu_toolbar.css. So admin menu looks like not same before.

I checked system table about every module weight, found Modules weight change admin_menu_toolbar weight to -100. But admin menu module weight still is 100.

So when I changed admin_menu_toolbar weight to 100, then admin menu appearance is ok.

Why modules weight should change default module weights?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thlo7777 created an issue. See original summary.

swarad07’s picture

Probably some issue in the code below,

/**
 * Prepares the delta for the weight field on the administration form.
 * If a module has a weight higher then 100 (or lower than 100), it will use that
 * value as delta and the '#weight' field will turn into a textfield most likely
 *
 * @param $weight
 * @return int
 */
function modules_weight_prepare_delta($weight) {
  $delta = 100;
  if ((int) $weight > $delta) {
    return (int) $weight;
  }
  if ((int) $weight < -100) {
    return (int) $weight * -1;
  }

  return $delta;
}
thlo7777’s picture

I agree with you. From my perspective is to keep every module original weight possibly.

adriancid’s picture

Status: Active » Closed (outdated)

Thanks for reporting, It seems to be fixed in #2911901: Use the system_rebuild_module_data() function to show the modules list I'm closing this as outdated. Use for the moment the last dev version. I think that the new version will be out in the next 15 days.