Create node type with asset
Schneck - December 22, 2008 - 20:38
| Project: | Asset |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Hi there,
I want to create a node type with an asset field included.
I implemented hook_form:
function mymodule_form(&$node, $form_values) {
[...]
$form['myelement'] = array(
'#type' => 'asset',
'#title' => t('Title'),
'#required' => FALSE,
'#multiple' => TRUE,
);
}When I now want to create a node of the new node type, I receive a Drupal-Error-Message:
warning: Missing argument 2 for theme_asset() in /[..]/sites/all/modules/asset/asset.module on line 1021.
Any ideas?
Thanks,
Stefan
