original_string: 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);
              }
          }
      }
code: 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);
              }
          }
      }
code_tokens: 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 ) ; } } }
docstring: Finds custom block regions associated with a page type and registers them with this block manager.
  
  @param string $pagetype
docstring_tokens: Finds custom block regions associated with a page type and registers them with this block manager .