fm_progress_bar_timeout


mixed fm_progress_bar_timeout ( [int $seconds] )


 

Description


Allows you to set the default progress bar timeout or get the current setting.

 

Parameters


seconds (optional)
The number of seconds to wait until the progress bar is automatically closed. The default timeout is 30 seconds.

Note that the timeout timer is reset each time /wiki/spaces/SP3/pages/1278241 is called.

Use -1 to disable timeout.

 

Return


Returns true if the default timeout is set or false if the seconds parameter is invalid. If no parameter is passed in, the current setting will be returned.

 

Errors


315 Function not supported on server

 

Example 1 - Set default progress bar timeout and confirm
fm_progress_bar_timeout(120);
echo fm_progress_bar_timeout();
/*
Returns: 120
*/