/**
* Add extra field for pages
*
* @param string $location Table for adding extrafield
* @param string $name Field name (unique)
* @param string $type Field type (input, textarea etc)
* @param string $html HTML Resource string
* @param string $variants Variants of values (for radiobuttons, selectors etc)
* @param string $default Default value
* @param bool $required Required field
* @param string $parse Parsing Type (HTML, BBCodes)
* @param string $description Description of field (optional, for admin)
* @param string $params Params (for radiobuttons, selectors etc)
* @param string $enabled Enable field
* @param bool $noalter Do not ALTER the table, just register the extra field
* @param string $customtype Modify sql type, size, default
* @return bool
*
* @global CotDB $db
*/
function cot_extrafield_add($location, $name, $type, $html='', $variants='', $default='', $required=false, $parse='HTML', $description='', $params = '', $enabled = 1, $noalter = false, $customtype = '')
See please extrafields api.
Also for params you can use langfiles
$L['subs_1'];
littledev.ru - мой маленький зарождающийся блог о котонти.
снижение стоимости программирования и снижение стоимости производства разные вещи. Первое можно скорее сравнить с раздачей работникам дешевых инструментов, чем со снижением зарплаты