The title callback causes an error with the admin_language module, for now I dont really know why (maybe its a bug in admin_language module?).
With admin_language enabled it does not render an asset type title in the menu and on /admin/content/assets/add (see attached screenshot)

asset.module, function asset_menu(), line 272++



<?php
foreach (assets_get_types() as $type) {
    $type_url_str = str_replace('_', '-', $type->type);
    $items['admin/content/assets/add/' . $type_url_str] = array(
      'page callback' => 'assets_add',
      'page arguments' => array($type->type),
      'access callback' => 'asset_creation_access',
      'access arguments' => array($type->type),
      'file' => 'includes/asset.admin.inc',
      'title' => t('Add @asset_type_name', array('@asset_type_name' => $type->name)),
      //'title callback' => '_assets_form_page_title',
      //'title arguments' => array('asset_' . $type->type),
      'weight' => $type->weight,
    );
  }
?>

works properly.

So my question: Is there any reason for using a title callback which does exactly the same?

CommentFileSizeAuthor
asset_type_title_not_showing.png41.3 KBbjoernr-de
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bjoernr-de’s picture

Issue summary: View changes
IRuslan’s picture

Status: Active » Postponed (maintainer needs more info)

Could not reproduce it with last admin_language version.
Is it actual? I need some details about admin_language configuration.

Actually i don't see clear vision how is it possible.