Could anyone help me understand syntax of the code within the CDATA section? I think it's some db instruction code where s:18 means string of 18 character, etc but want to be sure since I know nothing about this... Would appreciate links to any references. Thx
/module/user/install/phpfox.xml.php
</field>
FYI: I'm adding custom variables directly from installer's xml files to maintain custom variables via version control & to avoid having to set them up for every install I'll do for upcoming releases...

/module/user/install/phpfox.xml.php
<field group_name="user.custom_group_details" field_name="drinker" module_id="user" type_id="user_panel" phrase_var_name="user.custom_drinker" type_name="VARCHAR(150)" var_type="select" is_active="1" is_required="0" ordering="0"> <![ CDATA[ a:3:{ i:0;a:1:{ s:15:"phrase_var_name";s:18:"user.cf_option_yes"; } i:1;a:1:{ s:15:"phrase_var_name";s:17:"user.cf_option_no"; } i:2;a:1:{ s:15:"phrase_var_name";s:24:"user.cf_option_sometimes"; } } ] ]>
</field>
FYI: I'm adding custom variables directly from installer's xml files to maintain custom variables via version control & to avoid having to set them up for every install I'll do for upcoming releases...
Be the first person to like this.