merci_ui.module in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2
Same filename and directory in other branches
merci_ui functions
File
modules/merci_ui/merci_ui.moduleView source
<?php
/**
* @file
* merci_ui functions
*/
/**
* Implementation of hook_views_api().
*/
function merci_ui_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'merci_ui'),
);
}
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;
}
}
}
Functions
Name | Description |
---|---|
merci_ui_preprocess_views_view | |
merci_ui_views_api | Implementation of hook_views_api(). |