Default config value
#1
Hey, I'm using this code to add a new setting to the ACP:
array(
			'name' => 'resig_cache',
			'title' => 'Cache Time',
			'description' => 'la de da.',
			'optionscode' => 'text',
			'disporder' => 2,
			'isdefault' => 1,
			'gid' => $iId,
		)

Works fine, but is there a way to set a default value? I want the default cache to be 10 minutes, but I'm not sure how.

Thanks
Reply
#2
This user has been denied support. This user has been denied support.
'value' => "10 minutes"
Reply
#3
Ah true. I'm evidently blind. Thanks for the help Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)