diff --git a/e107-Coding-Standard.md b/e107-Coding-Standard.md index 51221d0..bb7459c 100644 --- a/e107-Coding-Standard.md +++ b/e107-Coding-Standard.md @@ -77,7 +77,8 @@ Always use e107's form handler for form elements in the front-end. $frm->select($name,$value); $frm->checkbox($name,$value,$checked); $frm->selectbox($name,$array,$currentValue); // full SELECT tag with OPTIONs. - $frm->admin_button($name, $value, $action, $label); + $frm->admin_button($name, $value, $action, $label); // $label needed only when different to $value + $frm->admin_button('field_name', LAN_UPDATE, 'update'); ### Globals Avoid the use of global variables, especially as an alternative to parameter passing. (We'll always need some globals - but the less there are, the smaller the chance of a clash). In v2.0 use the e107::getxxx syntax to get pointers to 'global' functions and objects like $sql, $tp