Jump to content

Dipta Dhar

New Member
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dipta Dhar

  • Rank
    Junior Member
  1. how to get user request module info into modules hook folder structure: mymedia | | +---- hooks.php +---- mymedia.php +---- index.php created products: product-01: product-02: ------------------- ------------------- | Name: media 01 | | Name: media 02 | | Module: mymedia | | Module: mymedia | | | | | |_________________| |_________________| here, TableName: tblproducts ----------------------------------------------------- | id | name | servertype | ...... | ------------------------------------------------------- | 1 | media 01 | mymedia | ...... | | 2 | media 02 | mymedia | ...... | | .. | ........... | ....... | ...... | ----------------------------------------------------- hooks.php: <?php add_hook("AcceptOrder", 0, "mymedia_acceptOrder"); function mymedia_acceptOrder() { // how to get request product id or name here $mediaIDorName = ?? } ?> NB: how to get user request module info into modules hook.
  2. myModule.php: function myModule_ConfigOptions(array $params) { $conf = array( /* configoption1 */ "protocol" => array( "FriendlyName" => "Protocol Type", "Type" => "dropdown", "Options" => "http,https", "Size" => "25", "Description" => "enter protocol type"), /* configoption2 */ "host" => array( "FriendlyName" => "Host Name", "Type" => "text", "Size" => "25", "Description" => "enter host name address", "Default" => "127.0.0.1") ); return $conf; } hooks.php: <?php add_hook('...........', $priority, function($vars) { $protocol = <....?....>["configoption1"]; $host = <....?....>["configoption2"]; /* How can you received configoption options data in modules hook. */ } ?> NB: How can you received configoption options data in modules hook.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated