Here are some example uses of the included patch:

  Call a function from a specified file  
  <call_php_func>
    <function>test_func</function>
    <arguments>
      <argument>arg1</argument>
      <argument>arg2</argument>
    </arguments>
    <filepath>/path/to/file/file.inc</filepath>
  </call_php_func>
  
  Call a function from an include file from a module
  <call_php_func>
    <function>test_func</function>
    <arguments>
      <argument>arg1</argument>
      <argument>arg2</argument>
    </arguments>
    <type>inc</type>
    <module>my_module</module>
    <name>include_name</name>
  </call_php_func>
  
  Call a function defined in a module (no need for include)
  <call_php_func><function>test_func</function></call_php_func>
CommentFileSizeAuthor
patterns_call_php_func.patch5.11 KBandrewlevine

Comments

vaish’s picture

Status: Needs review » Fixed

Patch committed with one small correction. Id for build op should be 'form id', not 'action name' as it was used in this patch. This caused build op to never be executed.

Thanks.

Status: Fixed » Closed (fixed)

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