[eluser]OverZealous[/eluser]
[quote author="pdswan" date="1249940900"]This effectively sets the error message, but also results in an extra error message of 'Unable to access an error message corresponding to your rule name: attempt_upload.'[/quote]
This is another left-over flaw. I'll look into it. I think what I'd rather do is have the method return a string for custom error messages, TRUE for success, and FALSE for default error messages. Then you wouldn't have to set it manually.
[quote author="tdktank59" date="1249948218"]Hey is there any way to add a value before a dropdown such as a “== Select A Value ==”, or “== All Users ==”
Or something along those lines would be awesome![/quote]
Yes, but you have to override list when setting up the form. It looks something like this:
Code:
$g = new Group();
$g->get();
$group_list = array(0 => '-- All Users --');
foreach($g->all as $group) {
$group_list[$group->id] = (string)$group;
}
echo $u->render_form(array(
....
// We want to limit the groups visible
'group' => array(
'list' => $group_list
)
....
I might eventually look into providing a custom option for the first row.