Source: site.view [edit]
Function name: toggleCaptions
Arguments:
Description:
Page type: webl
Render function:  
Module: perfectCartoon

Page source:

var fi = Wub_GetFunctionInfo("cartoonDBSettings");
var settings = WubEval(fi.exec);

var showTips = settings.showTips ? true;

if showTips == true then
   showTips = false
elsif showTips == false then
   showTips = "nonNY"
else
   showTips = true
end;

settings.showTips := showTips;
fi.exec := ToString(settings);
Wub_SaveFunctionInfo(fi);

WubCall("adminConsole", ["SHOWING CAPTIONS: " + ToString(showTips)]);