r1492 + learn to list RS pools
[racktables] / inc / pagetitles.php
index f0b9870a9034b5154cd83ab533d98080d2becfa7..b572db22c650ae90334a66506ddf553669c79c66 100644 (file)
@@ -108,6 +108,24 @@ function dynamic_title_vservice ()
        return $ret;
 }
 
+function dynamic_title_rspool ()
+{
+       global $pageno;
+       $ret = array();
+       switch ($pageno)
+       {
+               case 'rspool':
+                       assertUIntArg ('id');
+                       $poolInfo = getRSPoolInfo ($_REQUEST['id']);
+                       $ret['name'] = empty ($poolInfo['name']) ? '' : 'ANONYMOUS' . $poolInfo['name'];
+                       $ret['params']['id'] = $_REQUEST['id'];
+                       break;
+               default:
+                       return NULL;
+       }
+       return $ret;
+}
+
 function dynamic_title_search ()
 {
        if (isset ($_REQUEST['q']))