You are here

function _nodehierarchy_parent_option_title in Node Hierarchy 7.4

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.2 nodehierarchy.module \_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.admin.inc
Get the parent selector pulldown.

File

./nodehierarchy.admin.inc, line 655
Admin functions for Node Hierarchy

Code

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