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.