e107::url('forum', 'index'), 'title' => "Main forum index"); // Retrieve all forums (exclude parents) if($sql->select('forum', 'forum_id, forum_name, forum_sef', "forum_parent != 0")) { while($row = $sql->fetch()) { $url = e107::url('forum', 'forum', array( 'forum_id' => $row['forum_id'], 'forum_sef' => $row['forum_sef'] ) ); $config['page'][] = array('page' => $url, 'title' => $row['forum_sef']); } } return $config; } }