Jump to content

getConfigArray default values


Eduardo G.

Recommended Posts

Hi! I'm developing a registrar module this way (sample code):

function myregistrar_getConfigArray() {
$configarray = array(
	"Username" 	=> array( "Type" => "text",     "Size" => "20", "Description" => "Enter your myregistrar username here", ),
 	"Password" 	=> array( "Type" => "password", "Size" => "20", "Description" => "Enter your myregistrar password here", ),
 	"DebugMode" => array( "Type" => "yesno", "Description" => "Select to enable debug mode", ),
 	"DigBinary" => array( "Type" => "text", "Size" => "20", "Description" => "Path to dig binary for DNS queries (/usr/bin/dig)" ),
);
return $configarray;
}

So I', using 4 config fields (username, password, debug and file path).

How can I set a default content for any of the text fields?

Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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