[support] page title isn't changing for tabs

Jaime Hablutzel Egoavil hablutzel1 at gmail.com
Sat Jun 30 05:54:49 UTC 2012


Hi, I have a question about tabbed menu items

With something like this


function socialmedia_menu() {
  // Module settings.
  $items['admin/config/media/socialmedia'] = array(
    'title' => 'Social media',
    'description' => 'Social media defaults and site profile settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('socialmedia_admin_settings'),
    'access arguments' => array('administer social media'),
    'file' => 'socialmedia.admin.inc',
    'file path' => drupal_get_path('module', 'socialmedia'),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/media/socialmedia/settings'] = array(
    'title' => 'Settings',
    'description' => 'Social media defaults and site profile settings',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('socialmedia_admin_settings'),
    'access arguments' => array('administer social media'),
    'file' => 'socialmedia.admin.inc',
    'file path' => drupal_get_path('module', 'socialmedia'),
    'weight' => 0,
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );


Borrowed from socialmedia module when I go to
'admin/config/media/socialmedia/settings', page title doesn't change to
'Settings' is this the expected behaviour?? Why does the page title stays
as 'Social media'?? Thanks

-- 
Jaime Hablutzel - 9-9956-3299

(tildes omitidas intencionalmente)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120630/7c176b32/attachment.html 


More information about the support mailing list