function merci_ui_preprocess_views_view in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.2
Same name and namespace in other branches
- 8.2 modules/merci_ui/merci_ui.module \merci_ui_preprocess_views_view()
- 6.2 modules/merci_ui/merci_ui.module \merci_ui_preprocess_views_view()
File
- modules/
merci_ui/ merci_ui.module, line 18 - merci_ui functions
Code
function merci_ui_preprocess_views_view(&$variables) {
if (isset($variables['name'])) {
if ($variables['name'] == 'merci_ui_user_reservations' or $variables['name'] == 'merci_ui_node_reservations') {
$output = '<div id="make-merci-reservation">';
$output .= l(t('Make a Reservation'), 'node/add/merci-reservation');
$output .= '</div>';
$variables['footer'] .= $output;
}
}
}