Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function mymodule_form_alter($form, $form_state) {
  2.  
  3. // Check if the form id is the id of your form.
  4.  
  5. // Use entity query that selects the node ids of the nodes that are reserved.
  6.  
  7. //Store the result in some array (let's say reserved_slots array).
  8.  
  9. // With a foreach loop, check each select option id against the reserved_slots array of ids.
  10.  
  11. //If such option exists, unset it.
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement