How to create sections under admin configuration tab

Public

How to create sections under admin configuration tab

Get raw version
php
  1. // https://www.drupal.org/node/1251942#comment-4875106
  2. $items['admin/config/your_admin_menu_block_title'] = array(
  3. 'title' => 'Your Title',
  4. 'description' => 'Settings related to formatting and authoring content.',
  5. 'position' => 'left',
  6. 'weight' => -15,
  7. 'page callback' => 'system_admin_menu_block_page',
  8. 'access arguments' => array('access administration pages'),
  9. 'file' => 'system.admin.inc',
  10. );
  11. /*
  12. The above code is how the 'admin/config/content' menu_block is created on the 'admin/config' page.
  13. Change the 'your_admin_menu_block_title' to the title of your menu_block.
  14. Change the 'Your Title' to a human readable version of your title. i.e. 'Content'
  15. You can edit or get rid of the description since it doesn't show on the 'admin/config' page.
  16. Position can be either left or right.
  17. Weight will tell it how high up in the list on the left or right side it will be.
  18. Leave the rest of the code alone and that should do it for you.
  19. */