hello again, I was able to insert the category-tree code to my controller, I inserted this code:
array(
'type' => 'categories',
'label' => $this->l('Parent category'),
'name' => 'id_parent',
'tree' => array(
'id' => 'categories-tree',
'selected_categories' => $selected_categories,
)
),
and it showed me this:
okey, but it is showing the categories that I already created in the category menu, but how it gets that information from the category table?.. I've deleted the lines
'tree' => array(
'id' => 'categories-tree',
'selected_categories' => $selected_categories, just to see what happens. and it is still showing the information, I think it i for the type = 'categories'.. can you help me? where this 'categories' type is defined?