function theme_party_activity_add_list in Party 8.2
Same name and namespace in other branches
- 7 modules/party_activity/party_activity.admin.inc \theme_party_activity_add_list()
Displays the list of available activity types for activity creation.
1 theme call to theme_party_activity_add_list()
- PartyActivityUIController::addPage in modules/
party_activity/ party_activity.admin.inc - Create the markup for the add Party Activity Entities page within the class so it can easily be extended/overriden.
File
- modules/
party_activity/ party_activity.admin.inc, line 318 - Party Activity editing UI
Code
function theme_party_activity_add_list($variables) {
$content = $variables['content'];
$output = '';
if ($content) {
$output = '<dl class="party-activity-type-list">';
foreach ($content as $item) {
$output .= '<dt>' . l($item['title'], $item['href']) . '</dt>';
$output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
}
$output .= '</dl>';
}
else {
if (user_access('administer party activity types')) {
$output = '<p>' . t('Party Activity Entities cannot be added because you have not created any party activity types yet. Go to the <a href="@create-activity-type">activity type creation page</a> to add a new activity type.', array(
'@create-activity-type' => url('admin/structure/party_activity_types/add'),
)) . '</p>';
}
else {
$output = '<p>' . t('No activity types have been created yet for you to use.') . '</p>';
}
}
return $output;
}