Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MODULENAME_addto_schedule($nodes, $view) {
- foreach ($nodes as $key => $value) {
- // Is this a duplicate?
- if (isset($_SESSION['schedule']) && (in_array($value, $_SESSION['schedule']))) {
- // Item already exists in the array
- } else {
- $_SESSION['schedule'][] = $value;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement