Problem/Motivation

When the module is installed it sets the weight considering modules and profiles. But only modules should be considered.

Steps to reproduce

- Install Drupal
- Install the module

The module weight will be set to 1001 when the highest weight is 10 (views module).

Proposed resolution

Only consider modules to set the weight.

Remaining tasks

Create the patch.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

adriancid created an issue. See original summary.

adriancid’s picture

Status: Active » Needs review
summit’s picture

Hi, Will with this change the module weight of the module be something like 11 if 10 is the highest value?
greetings, Martijn

adriancid’s picture

@Summit yes, but you can go and use the new release for Modules Weight module too if you need to change the weight.

summit’s picture

Hi, The problem is the 1001 of this module, an "add-on" module, cookie_content_blocker needs then to be set to 1002, and that is out of range of the Module Weight Module. That module goes only to 100..
Greetings,

svenryen’s picture

@adriancid, thanks for helping out. Can you confirm this issue is supposed to focus on 2.x? In that case, is it also related to 8.x-1.x? We most likely will discontinue 2.x.

svenryen’s picture

Version: 2.0.x-dev » 8.x-1.x-dev
adriancid’s picture

@svenryen it was a year ago, I really don't remember, but I think the issue should be in the 8.x version too.

svenryen’s picture

Issue tags: +Open Ownership Pledge

atowl made their first commit to this issue’s fork.

atowl’s picture

Hi @adriancid,

I've switched this across to 8.x-1.x.

  • atowl committed 6f1b2b6f on 8.x-1.x authored by adriancid
    Issue #3425868: Only consider modules to set the module weight
    
atowl’s picture

Status: Needs review » Fixed

Hi @adriancid,
Have merged this in, thanks for your work on the issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.