fileupload_menu
developer/examples/fileupload.module, строка 23
- Версии
- 5
fileupload_menu($may_cache)
Implementation of hook_menu.
Код
<?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;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии