fileupload_menu

Versions
4.7 – 5
fileupload_menu($may_cache)

Implementation of hook_menu.

Code

developer/examples/fileupload.module, line 23

<?php
function fileupload_menu($may_cache) {
  $items = array();

  if ($may_cache) {
    $items[] = array('path' => 'node/add/fileupload', 'title' =>  t('file upload'),
      'access' => user_access('create files'));
  }

  return $items;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.