function asset_field_extra_fields in Asset 7
Implements hook_field_extra_fields().
File
- ./
asset.module, line 531 - Asset module.
Code
function asset_field_extra_fields() {
$extra = array();
foreach (assets_get_types() as $type) {
$extra['asset'][$type->type] = array(
'form' => array(
'title' => array(
'label' => t('Title'),
'description' => t('Asset module element'),
'weight' => -5,
),
),
);
}
return $extra;
}