You are here

function _nodehierarchy_parent_option_title in Node Hierarchy 7.2

Same name and namespace in other branches
  1. 6.3 nodehierarchy.module \_nodehierarchy_parent_option_title()
  2. 6.2 nodehierarchy.module \_nodehierarchy_parent_option_title()
  3. 7.4 nodehierarchy.admin.inc \_nodehierarchy_parent_option_title()

Get the title of the given item to display in a pulldown.

1 call to _nodehierarchy_parent_option_title()
_nodehierarchy_get_parent_selector in ./nodehierarchy.module
Get the parent selector pulldown.

File

./nodehierarchy.module, line 1719
A module to make nodes hierarchical.

Code

function _nodehierarchy_parent_option_title($item) {
  return str_repeat('--', $item['depth'] - 1) . ' ' . truncate_utf8($item['title'], 60, TRUE, FALSE);
}