Much appreciated the inspiration, but I modified the get_forms()
function, because it is too much bound to the produced HTML. I prefer to rely directly on the database. Have not modified other snippet, so I’m thankful to @nicmare 🙂
function get_forms(){
$results = array();
foreach (FrmForm::get_published_forms() as $published_form) {
$results[$published_form->id] = $published_form->name;
}
return $results;
}