public function add_custom_regions_for_pagetype($pagetype) {
        global $SESSION;
        if (isset($SESSION->custom_block_regions[$pagetype])) {
            foreach ($SESSION->custom_block_regions[$pagetype] as $customregion) {
                $this->add_region($customregion, false);
            }
        }
    }
public function add_custom_regions_for_pagetype($pagetype) {
        global $SESSION;
        if (isset($SESSION->custom_block_regions[$pagetype])) {
            foreach ($SESSION->custom_block_regions[$pagetype] as $customregion) {
                $this->add_region($customregion, false);
            }
        }
    }
public function add_custom_regions_for_pagetype ( $ pagetype ) { global $ SESSION ; if ( isset ( $ SESSION -> custom_block_regions [ $ pagetype ] ) ) { foreach ( $ SESSION -> custom_block_regions [ $ pagetype ] as $ customregion ) { $ this -> add_region ( $ customregion , false ) ; } } }
Finds custom block regions associated with a page type and registers them with this block manager.

@param string $pagetype
Finds custom block regions associated with a page type and registers them with this block manager .