Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -1290,32 +1290,6 @@ |
1291 | 1291 | } |
1292 | 1292 | |
1293 | 1293 | /** |
1294 | | - * Create an array of personal tools items from the data in the quicktemplate |
1295 | | - * stored by SkinTemplate. |
1296 | | - * The resulting array is built acording to a format intended to be passed |
1297 | | - * through makeListItem to generate the html. |
1298 | | - * This is in reality the same list as already stored in personal_urls |
1299 | | - * however it is reformatted so that you can just pass the individual items |
1300 | | - * to makeListItem instead of hardcoding the element creation boilerplate. |
1301 | | - */ |
1302 | | - function getPersonalTools() { |
1303 | | - $personal_tools = array(); |
1304 | | - foreach( $this->data['personal_urls'] as $key => $ptool ) { |
1305 | | - # The class on a personal_urls item is meant to go on the <a> instead |
1306 | | - # of the <li> so we have to use a single item "links" array instead |
1307 | | - # of using most of the personal_url's keys directly |
1308 | | - $personal_tools[$key] = array(); |
1309 | | - $personal_tools[$key]["links"][] = array(); |
1310 | | - $personal_tools[$key]["links"][0]["single-id"] = $personal_tools[$key]["id"] = "pt-$key"; |
1311 | | - $personal_tools[$key]["active"] = $ptool["active"]; |
1312 | | - foreach ( array("href", "class", "text") as $k ) { |
1313 | | - $personal_tools[$key]["links"][0][$k] = $ptool[$k]; |
1314 | | - } |
1315 | | - } |
1316 | | - return $personal_tools; |
1317 | | - } |
1318 | | - |
1319 | | - /** |
1320 | 1294 | * Makes a link, usually used by makeListItem to generate a link for an item |
1321 | 1295 | * in a list used in navigation lists, portlets, portals, sidebars, etc... |
1322 | 1296 | * |