Commit ecbc6e30 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Added a function to auto configure any form. It's adding sesskey stuff, but

that is not checked yet on form submit time.
parent d9d53a48
......@@ -1263,4 +1263,22 @@ function rebuild_artefact_parent_cache_complete() {
db_commit();
}
/**
* Configures a default form
*/
function form_configure() {
global $SESSION;
return array(
'method' => 'post',
'action' => '',
'autofocus' => true,
'elements' => array(
'sesskey' => array(
'type' => 'hidden',
'value' => $SESSION->get('sesskey')
)
)
);
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment