function theme_bat_type_add_list in Booking and Availability Management Tools for Drupal 7
Displays the list of available Type bundles for Type creation.
1 theme call to theme_bat_type_add_list()
- BatTypeUIController::addPage in modules/
bat_unit/ bat_type.admin.inc - Creates the markup for the add Bat Type Entities page within the class so it can easily be extended/overridden.
File
- modules/
bat_unit/ bat_type.admin.inc, line 733 - BatType editing UI.
Code
function theme_bat_type_add_list($variables) {
$content = $variables['content'];
if ($content) {
$output = '<dl class="type-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 type bundles')) {
$output = '<p>' . t('Type cannot be added because you have not created any Type bundles yet. Go to the <a href="@create-type_bundle">type bundle creation page</a> to add a new type bundle.', array(
'@create-type_bundle' => url('admin/bat/config/type-bundles/add'),
)) . '</p>';
}
else {
$output = '<p>' . t('No Type bundles have been created yet.') . '</p>';
}
}
return $output;
}