source/php/Editor.php
public function sanitizeModuleData($sidebars)
    {
        foreach ($sidebars as &$sidebar) {
            if (!empty($sidebar) && is_array($sidebar)) {
                foreach ($sidebar as &$module) {
                    $module['hidden'] = isset($module['hidden']) && $module['hidden'] == 'hidden';
                }
            }
        }

        return $sidebars;
    }
public function sanitizeModuleData($sidebars)
    {
        foreach ($sidebars as &$sidebar) {
            if (!empty($sidebar) && is_array($sidebar)) {
                foreach ($sidebar as &$module) {
                    $module['hidden'] = isset($module['hidden']) && $module['hidden'] == 'hidden';
                }
            }
        }

        return $sidebars;
    }
public function sanitizeModuleData ( $ sidebars ) { foreach ( $ sidebars as & $ sidebar ) { if ( ! empty ( $ sidebar ) && is_array ( $ sidebar ) ) { foreach ( $ sidebar as & $ module ) { $ module [ 'hidden' ] = isset ( $ module [ 'hidden' ] ) && $ module [ 'hidden' ] == 'hidden' ; } } } return $ sidebars ; }
Sanitize module data
@param $sidebars
@return array
Sanitize module data