Complete example of template
This commit is contained in:
parent
90dcd3d30d
commit
e1d9dfc862
@ -288,6 +288,12 @@ class modMyModule extends DolibarrModules
|
|||||||
|
|
||||||
$this->_load_tables('/mymodule/sql/');
|
$this->_load_tables('/mymodule/sql/');
|
||||||
|
|
||||||
|
// Create extrafields
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||||
|
$extrafields = new ExtraFields($this->db);
|
||||||
|
//$result1=$extrafields->addExtraField('myattr1', "New Attr 1 label", 'boolean', 1, 3, 'thirdparty');
|
||||||
|
//$result2=$extrafields->addExtraField('myattr2', "New Attr 2 label", 'string', 1, 10, 'project');
|
||||||
|
|
||||||
return $this->_init($sql, $options);
|
return $this->_init($sql, $options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user