function _potx_add_default_region_names in Translation template extractor 6
Same name and namespace in other branches
- 8 potx.inc \_potx_add_default_region_names()
- 5.2 potx.inc \_potx_add_default_region_names()
- 5 potx.inc \_potx_add_default_region_names()
- 6.3 potx.inc \_potx_add_default_region_names()
- 6.2 potx.inc \_potx_add_default_region_names()
- 7.3 potx.inc \_potx_add_default_region_names()
- 7 potx.inc \_potx_add_default_region_names()
- 7.2 potx.inc \_potx_add_default_region_names()
Add default theme region names, which cannot be extracted otherwise. These default names are defined in system.module
Parameters
$file: Name of the file parsed.
$save_callback: Callback function used to save strings.
$api_version: Drupal API version to work with.
1 call to _potx_add_default_region_names()
- _potx_process_file in ./potx.inc 
- Process a file and put extracted information to the given parameters.
File
- ./potx.inc, line 962 
- Extraction API used by the web and command line interface.
Code
function _potx_add_default_region_names($file, $save_callback, $api_version = POTX_API_6) {
  $regions = array(
    'left' => 'Left sidebar',
    'right' => 'Right sidebar',
    'content' => 'Content',
    'header' => 'Header',
    'footer' => 'Footer',
  );
  foreach ($regions as $region) {
    $save_callback($region, $file);
  }
}