function party_activity_entity_info_alter in Party 8.2
Same name and namespace in other branches
- 7 modules/party_activity/party_activity.module \party_activity_entity_info_alter()
Implements hook_entity_info_alter().
File
- modules/
party_activity/ party_activity.module, line 65 - Functions and important hooks for the party_activity module
Code
function party_activity_entity_info_alter(&$entity_info) {
foreach (party_activity_get_types() as $type => $info) {
$entity_info['party_activity']['bundles'][$type] = array(
'label' => $info->label,
'admin' => array(
'path' => 'admin/structure/activity_types/manage/%party_activity_type',
'real path' => 'admin/structure/activity_types/manage/' . $type,
'bundle argument' => 4,
'access arguments' => array(
'administer activity types',
),
),
);
}
}