You are here

function hook_skinr_ui_element_title in Skinr 8.2

Same name and namespace in other branches
  1. 7.2 skinr_ui.api.php \hook_skinr_ui_element_title()

Returns the human readable title for a given element.

Parameters

$module: The module implementing given element.

$element: An element.

$theme_name: The name of the theme.

Return value

A string containing the element's title in human readable form.

See also

skinr_ui_admin_skins()

skinr_context_ui_skin_list_subform()

Related topics

6 functions implement hook_skinr_ui_element_title()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

block_skinr_ui_element_title in modules/block.skinr.inc
Implements hook_skinr_ui_element_title().
comment_skinr_ui_element_title in modules/comment.skinr.inc
Implements hook_skinr_ui_element_title().
node_skinr_ui_element_title in modules/node.skinr.inc
Implements hook_skinr_ui_element_title().
skinr_panels_skinr_ui_element_title in skinr_panels/skinr_panels.skinr.inc
Implements hook_skinr_ui_element_title().
system_skinr_ui_element_title in modules/system.skinr.inc
Implements hook_skinr_ui_element_title().

... See full list

File

skinr_ui/skinr_ui.api.php, line 63
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_skinr_ui_element_title($module, $element, $theme_name) {
  if ($module == 'node') {
    $type = node_type_get_type($element);
    return $type->name;
  }
}