public function cleanupCollapsedStatesInUC()
    {
        $backendUser = $this->getBackendUser();
        if (is_array($backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'])) {
            $collapsedGridelementColumns = $backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'];
            foreach ($collapsedGridelementColumns as $item => $collapsed) {
                if (empty($collapsed)) {
                    unset($collapsedGridelementColumns[$item]);
                }
            }
            $backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'] = $collapsedGridelementColumns;
            $backendUser->writeUC($backendUser->uc);
        }
    }
public function cleanupCollapsedStatesInUC()
    {
        $backendUser = $this->getBackendUser();
        if (is_array($backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'])) {
            $collapsedGridelementColumns = $backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'];
            foreach ($collapsedGridelementColumns as $item => $collapsed) {
                if (empty($collapsed)) {
                    unset($collapsedGridelementColumns[$item]);
                }
            }
            $backendUser->uc['moduleData']['page']['gridelementsCollapsedColumns'] = $collapsedGridelementColumns;
            $backendUser->writeUC($backendUser->uc);
        }
    }
public function cleanupCollapsedStatesInUC ( ) { $ backendUser = $ this -> getBackendUser ( ) ; if ( is_array ( $ backendUser -> uc [ 'moduleData' ] [ 'page' ] [ 'gridelementsCollapsedColumns' ] ) ) { $ collapsedGridelementColumns = $ backendUser -> uc [ 'moduleData' ] [ 'page' ] [ 'gridelementsCollapsedColumns' ] ; foreach ( $ collapsedGridelementColumns as $ item => $ collapsed ) { if ( empty ( $ collapsed ) ) { unset ( $ collapsedGridelementColumns [ $ item ] ) ; } } $ backendUser -> uc [ 'moduleData' ] [ 'page' ] [ 'gridelementsCollapsedColumns' ] = $ collapsedGridelementColumns ; $ backendUser -> writeUC ( $ backendUser -> uc ) ; } }
Processes the collapsed states of Gridelements columns and removes columns with 0 values
Processes the collapsed states of Gridelements columns and removes columns with 0 values