function ad_ui_entity_info_alter in Advertisement 7.2
Implements hook_entity_info_alter().
Expose the admin UI for ad fields.
File
- ./
ad_ui.module, line 210
Code
function ad_ui_entity_info_alter(&$entity_info) {
foreach ($entity_info['ad']['bundles'] as $type => &$bundle) {
$bundle['admin'] = array(
'path' => 'admin/ad/types/%ad_type',
'real path' => 'admin/ad/types/' . $type,
'bundle argument' => 4,
'access arguments' => array(
'administer advertisement types',
),
);
}
}