Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297576

reorder the paramters of module_load_include() to make sense

$
0
0

I'm surely not the only person who finds this order of params impossible to remember:

  // Load node.admin.inc from the node module.
  module_load_include('inc', 'node', 'node.admin');

Let's pick that apart:

we load:

PATH/node/node.admin.inc
1   /2   /3         .4

and the params to the function are:

module_load_include(4, 2, 3)


Viewing all articles
Browse latest Browse all 297576

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>