_node_add_access
modules/node/node.module, строка 1394
- Версии
- 6
_node_add_access()
Код
<?php
function _node_add_access() {
$types = node_get_types();
foreach ($types as $type) {
if (node_hook($type->type, 'form') && node_access('create', $type->type)) {
return TRUE;
}
}
return FALSE;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии