You are here

function system_skinr_ui_element_title in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 modules/system.skinr.inc \system_skinr_ui_element_title()

Implements hook_skinr_ui_element_title().

File

modules/system.skinr.inc, line 44
Implements Skinr hooks for system.module.

Code

function system_skinr_ui_element_title($module, $element, $theme_name) {
  if ($module == 'system') {
    $regions = system_region_list($theme_name);
    $title = t('Page');
    if (strpos($element, 'region') === 0) {

      // Strip the region__ part off the region name.
      $region = substr($element, 8);
      $title = t('Region %region', array(
        '%region' => isset($regions[$region]) ? $regions[$region] : $region,
      ));
    }
    return $title;
  }
}