2

I need to understand how can we change module weight.

  • Do we really change that value for custom module.
  • What are the default values?
  • If we change weight value what will be effect on Drupal bootstrap process?
5
  • WHy you want to change the module load order? May be you want to change hook implementation module call order?
    – sanzante
    Apr 14, 2015 at 9:02
  • I have written one custom module, which implements hook for workflow module and commerce module. and I am getting error like Fatal error: Call to undefined function workflowfield_property_info_callback() in sites/all/modules/entity/modules/field.info.inc on line 30. May be I think I have change order for my custom module Apr 14, 2015 at 9:06
  • AFAIK Drupal loads all enabled modules (well, only the .module of every enabled module) and the starts to use them. May be your workflowfield_property_info_callback() function is in another file that's not the .module?
    – sanzante
    Apr 14, 2015 at 9:12
  • No this function is already define in workflow_field/workflowfield.field.inc Apr 14, 2015 at 10:32
  • You have to include that file, see drupal.stackexchange.com/questions/144710/…
    – sanzante
    Apr 14, 2015 at 14:24

1 Answer 1

1

You can do this by using Modules Weight module.

This module provide admin interface for users/people has the access to modules page to reorder the module weights as they want.

Not the answer you're looking for? Browse other questions tagged or ask your own question.