array( "catid" => "sysconfig", "defaultvalue" => "no", "permissions" => "2", "validator" => "list:no|selective|yes", "shadows" => array( "no" => array( "SLX_BWIDM_ORGS" ), "yes" => array( "SLX_BWIDM_ORGS" ) ) ), "SLX_BWIDM_ORGS" => array( "catid" => "sysconfig", "defaultvalue" => "", "permissions" => "2", "validator" => "multilist:" . implode('|', $out[1]) ) ); if (!file_put_contents(BWLP_SETTINGS_JSON, json_encode($data))) { $error = error_get_last(); EventLog::warning('Could not write bwIDM data to ' . BWLP_SETTINGS_JSON, $error['message']); } });