+//////////////////// the options for an nodetype - suitable for plekit/form
+function node_type_selectors ($api,$nodetype) {
+ $builtin_types = array ( "regular" => "Regular/Shared",
+ "reservable" => "Reservable (requires to get leases)");
+ foreach ($builtin_types as $value=>$display) {
+ $selector=array('display'=>$display, 'value'=>$value);
+ if ($value == $nodetype) $selector['selected']=true;
+ $selectors []= $selector;
+ }
+ return $selectors;
+}
+