From: SourceForge.net <no...@so...> - 2012-04-01 14:20:37
|
Feature Requests item #3513931, was opened at 2012-04-01 07:20 Message generated for change (Tracker Item Submitted) made by beckmi You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430843&aid=3513931&group_id=41586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: XOOPS 2.6 Status: Open Resolution: None Priority: 5 Private: No Submitted By: Michael Beck (beckmi) Assigned to: MusS (forxoops) Summary: Add Description as parameter to XoopsFormElement constructor Initial Comment: Currently, in order to add Description to form element we have to use three lines: $lang_code = new XoopsFormText(_AM_XLANG_CODE, 'lang_charset', 50, 255, $lang_code); $lang_code->setDescription(_AM_XLANG_CODE_DESC); $sform->addElement($lang_code, true); instead of taking advantage of: $sform->addElement(new XoopsFormText(_AM_XLANG_CODE, 'lang_code', 50, 255, $lang_code), true); we should be able to expand it by adding _AM_XLANG_CODE_DESC to the constructor as follow: $sform->addElement(new XoopsFormText(_AM_XLANG_CODE, _AM_XLANG_CODE_DESC, 'lang_code', 50, 255, $lang_code), true); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=430843&aid=3513931&group_id=41586 |