You are here

function block_skinr_ui_element_title in Skinr 8.2

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

Implements hook_skinr_ui_element_title().

File

modules/block.skinr.inc, line 60
Implements Skinr hooks for block.module.

Code

function block_skinr_ui_element_title($element_type, $element, $theme_name) {
  if ($element_type == 'block') {
    $blocks = _block_skinr_load_blocks($theme_name);
    if (isset($blocks[$element])) {
      return $blocks[$element]
        ->label();
    }
  }
}