Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
asset_type_title_not_showing.png | 41.3 KB | bjoernr-de |
Comments
Comment #1
bjoernr-de CreditAttribution: bjoernr-de commentedComment #2
IRuslan CreditAttribution: IRuslan at DrupalJedi commentedCould 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.