function _node_add_access
Same name and namespace in other branches
- 7.x drupal-7.x/modules/node/node.module \_node_add_access()
1 string reference to '_node_add_access'
- node_menu in drupal-6.x/modules/node/node.module
- Implementation of hook_menu().
Archivo
- drupal-6.x/modules/node/node.module, line 1420
- The core that allows content to be submitted to the site. Modules and scripts may
programmatically submit nodes using the usual form API pattern.
Código
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;
}