function merci_hours_str_to_array in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6
Same name and namespace in other branches
- 6.2 includes/api.inc \merci_hours_str_to_array()
- 7.2 includes/api.inc \merci_hours_str_to_array()
1 call to merci_hours_str_to_array()
- merci_rro_determine_best_value in modules/
merci_rro/ merci_rro.module
File
- ./
merci.module, line 2624 - MERCI - Managed Equipment Reservation Checkout and Inventory
Code
function merci_hours_str_to_array($str) {
if (drupal_strlen($str) == 11) {
$parts = explode('-', $str);
if (count($parts) == 2) {
return array(
'open' => $parts[0],
'close' => $parts[1],
);
}
}
return FALSE;
}