Frage

I'm having some trouble with the titles of my pages.

English Settings Page :

Title

 $items['mymodule/admin'] = array(
    'title' => 'Administrate',
    'page callback' => 'mymodule_admin_home',
    'access arguments' => array('access content'),
    'type' => MENU_NORMAL_ITEM,
    // ...
 );
 $items['mymodule/admin/settings/english'] = array(
    'title' => 'English Settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => 'mymodule_makeEnglishSettingsForm',
    'type' => MENU_DEFAULT_LOCAL_TASK,
 );

The title I set for my page in my hook_menu module doesn't stick, instead, it sets the title to it's parent-most item. I know that I can use drupal_set_title($my-new-title) to fix it. But why is this misbehaving? What did I do wrong?

Keine korrekte Lösung

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top