function theme_merci_rro_override in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Theme an override object
1 theme call to theme_merci_rro_override()
- merci_rro_admin_page in modules/
merci_rro/ merci_rro.admin.inc - Menu callback; rule override administration.
File
- modules/
merci_rro/ merci_rro.module, line 98 - Hooks and utility functions for MERCI Role Rule Override
Code
function theme_merci_rro_override($override) {
$role = merci_rro_role_name_from_rid($override->rid);
$html = '<div class="merci-rro-override">
<h3 class="fn">' . check_plain($role) . '</h3>
<ul>
<li><b>' . t('Maximum hours per reservation:') . '</b> <span class="value">' . $override->max_hours_per_reservation . '</span></li>
<li><b>' . t('Allow overnight reservation:') . '</b> <span class="value">' . ($override->allow_overnight == 1 ? 'Yes' : 'No') . '</span></li>
<li><b>' . t('Allow weekend reservation:') . '</b> <span class="value">' . ($override->allow_weekends == 1 ? 'Yes' : 'No') . '</span></li>
<li><b>' . t('Rate per hour:') . '</b> <span class="value">' . $override->rate_per_hour . '</span></li>
<li><b>' . t('Late fee per hour:') . '</b> <span class="value">' . $override->late_fee_per_hour . '</span></li>
<li><b>' . t('Fee free hours:') . '</b> <span class="value">' . $override->fee_free_hours . '</span></li>
<li><b>' . t('Minimum hours for cancelation without No Show:') . '</b> <span class="value">' . $override->min_cancel_hours . '</span></li>
<li><b>' . t('Monday Hours:') . '</b> <span class="value">' . $override->hours_mon . '</span></li>
<li><b>' . t('Tuesday Hours:') . '</b> <span class="value">' . $override->hours_tue . '</span></li>
<li><b>' . t('Wednesday Hours:') . '</b> <span class="value">' . $override->hours_wed . '</span></li>
<li><b>' . t('Thursday Hours:') . '</b> <span class="value">' . $override->hours_thu . '</span></li>
<li><b>' . t('Friday Hours:') . '</b> <span class="value">' . $override->hours_fri . '</span></li>
<li><b>' . t('Saturday Hours:') . '</b> <span class="value">' . $override->hours_sat . '</span></li>
<li><b>' . t('Sunday Hours:') . '</b> <span class="value">' . $override->hours_sun . '</span></li>
</ul>';
if (user_access('administer MERCI')) {
$html .= '<p><a href="' . base_path() . 'admin/content/node-type/' . $override->type . '/merci_rro?delete=' . $override->rid . '">Remove</a></p>';
}
// if
$html .= '</div>';
return $html;
}