When a user navigates to a relation view. e.g: /relation/%relation no page title is set because the title callback does not exist.

See relation_ui.module

function relation_ui_menu() {
  $items['relation/%relation'] = array(
    'title callback' => 'relation_page_title',
    'title arguments' => array(1),
    'access arguments' => array('access relations'),
    'page callback' => 'relation_page',
    'page arguments' => array(1),
  );

relation_page_title was removed in c04134c05d1b0cea92e885e082632d5e6b34a0a0

CommentFileSizeAuthor
#5 rename_to_relation_ui-1965724-5.patch6.78 KBmikran

Comments

mikran’s picture

that was just temporary, it got added back in 5ca9254b9cd7f2c01d6022417ff3b9c76e0c693c ?

edit: ohh you're right, the function name didn't get changed. patch incoming?

dpi’s picture

edit: just rename title callback to relation_ui_page_title

mikran’s picture

Status: Active » Fixed
mikran’s picture

Status: Fixed » Active

Following items should also be changed to relation_ui* for consistency.

'title callback' => 'relation_type_page_title',
'page callback' => 'relation_page',
'page arguments' => array('relation_edit_form', 1),
'page arguments' => array('relation_delete_confirm', 1),

mikran’s picture

Status: Active » Needs review
StatusFileSize
new6.78 KB

and the patch

mikran’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.