<bdo id='APPdB'></bdo><ul id='APPdB'></ul>
  • <tfoot id='APPdB'></tfoot>

  • <small id='APPdB'></small><noframes id='APPdB'>

    <legend id='APPdB'><style id='APPdB'><dir id='APPdB'><q id='APPdB'></q></dir></style></legend>

    1. <i id='APPdB'><tr id='APPdB'><dt id='APPdB'><q id='APPdB'><span id='APPdB'><b id='APPdB'><form id='APPdB'><ins id='APPdB'></ins><ul id='APPdB'></ul><sub id='APPdB'></sub></form><legend id='APPdB'></legend><bdo id='APPdB'><pre id='APPdB'><center id='APPdB'></center></pre></bdo></b><th id='APPdB'></th></span></q></dt></tr></i><div id='APPdB'><tfoot id='APPdB'></tfoot><dl id='APPdB'><fieldset id='APPdB'></fieldset></dl></div>

        你能控制钩子的顺序“射击"吗?在 Drupal 中?

        Can you Control the Order of Hooks quot;Firingquot; in Drupal?(你能控制钩子的顺序“射击吗?在 Drupal 中?)
        <legend id='N2cYQ'><style id='N2cYQ'><dir id='N2cYQ'><q id='N2cYQ'></q></dir></style></legend>
        • <bdo id='N2cYQ'></bdo><ul id='N2cYQ'></ul>
        • <small id='N2cYQ'></small><noframes id='N2cYQ'>

          <tfoot id='N2cYQ'></tfoot>

                <tbody id='N2cYQ'></tbody>

                <i id='N2cYQ'><tr id='N2cYQ'><dt id='N2cYQ'><q id='N2cYQ'><span id='N2cYQ'><b id='N2cYQ'><form id='N2cYQ'><ins id='N2cYQ'></ins><ul id='N2cYQ'></ul><sub id='N2cYQ'></sub></form><legend id='N2cYQ'></legend><bdo id='N2cYQ'><pre id='N2cYQ'><center id='N2cYQ'></center></pre></bdo></b><th id='N2cYQ'></th></span></q></dt></tr></i><div id='N2cYQ'><tfoot id='N2cYQ'></tfoot><dl id='N2cYQ'><fieldset id='N2cYQ'></fieldset></dl></div>
                • 本文介绍了你能控制钩子的顺序“射击"吗?在 Drupal 中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果两个模块在 Drupal 中实现了相同的钩子,系统是否有办法定义钩子函数的调用顺序,还是只是绘制/字母顺序的运气?或者是其他东西?或者我的问题是否表明我以某种基本方式误解了 hooks,让我看起来很愚蠢?

                  If two modules implement the same hook in Drupal, does the system have a way to define which order the hook functions are called, or is it just luck of the draw/alphabetical ordering? Or something else? Or does my question show I misunderstand hooks in some fundamental way that makes me look dumb?

                  推荐答案

                  顺序是根据系统表中模块的权重设置确定的.如果两个模块的权重相同,则按字母顺序排列.

                  The order is determined based on the weight setting for the module in the system table. If two modules have the same weight, the order is alphabetical.

                  这篇关于你能控制钩子的顺序“射击"吗?在 Drupal 中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I pass parameters into a PHP script through a webpage?(如何通过网页将参数传递给 PHP 脚本?)
                  PHP - include a php file and also send query parameters(PHP - 包含一个 php 文件并发送查询参数)
                  Where can I read about conditionals done with quot;?quot; and quot;:quot; (colon)?(我在哪里可以阅读有关使用“?完成的条件的信息?和“:(冒号)?)
                  Accessing arrays whitout quoting the key(在不引用键的情况下访问数组)
                  What is the name for the quot;lt;lt;lt;quot; operator?(“lt;lt;lt;的名字是什么?操作员?)
                  default as first option in switch statement?(默认为 switch 语句中的第一个选项?)
                  <i id='GMaSQ'><tr id='GMaSQ'><dt id='GMaSQ'><q id='GMaSQ'><span id='GMaSQ'><b id='GMaSQ'><form id='GMaSQ'><ins id='GMaSQ'></ins><ul id='GMaSQ'></ul><sub id='GMaSQ'></sub></form><legend id='GMaSQ'></legend><bdo id='GMaSQ'><pre id='GMaSQ'><center id='GMaSQ'></center></pre></bdo></b><th id='GMaSQ'></th></span></q></dt></tr></i><div id='GMaSQ'><tfoot id='GMaSQ'></tfoot><dl id='GMaSQ'><fieldset id='GMaSQ'></fieldset></dl></div>

                    <tbody id='GMaSQ'></tbody>

                    <bdo id='GMaSQ'></bdo><ul id='GMaSQ'></ul>

                      <small id='GMaSQ'></small><noframes id='GMaSQ'>

                      <legend id='GMaSQ'><style id='GMaSQ'><dir id='GMaSQ'><q id='GMaSQ'></q></dir></style></legend>
                      <tfoot id='GMaSQ'></tfoot>