[#] Blok w sekcji administracyjnej w Drupal

( Ostatnio zmieniony czw., 10/07/2008 - 00:15 )
 
function example_menu() {
  $items['admin/example'] = array(
    'title' => 'Example administration',
    'description' => 'Administrative interface for example.',
    'position' => 'left',
    'weight' => 3,
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array('administer site configuration'),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
  );

  $items['admin/example/one'] = array(
    'title' => 'Example one settings',
    'description' => 'Example description',
    'page callback' => 'drupal_get_form',
    'page arguments' => array('example_form_settings'),
    'access arguments' => array('administer example')
  );
  return $items;
}
5
Twoja ocena: Brak Średnio: 5 (1 vote)