public static function contentMainEditExpandAll($belowPageId = null) { $expandedPageIds = SessionUtil::getVar('contentExpandedPageIds', array()); foreach (Content_Util::contentMainEditGetPagesList($belowPageId) as $page) { $expandedPageIds[$page['id']] = 1; } SessionUtil::setVar('contentExpandedPageIds', $expandedPageIds); }