Making a new block in drupal's admin/config page


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $items['admin/config/module'] = array(
  2. 'title' => 'My Site',
  3. 'description' => 'Configure My Site settings.',
  4. 'position' => 'left',
  5. 'weight' => -20,
  6. 'page callback' => 'system_admin_menu_block_page',
  7. 'access arguments' => array('access administration pages'),
  8. 'file' => 'system.admin.inc',
  9. 'file path' => drupal_get_path('module', 'system'),
  10. );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.