Remove count-limited content types from Create Content menus for
If you want this, contact Agaric (and offer mutual aid). Or if you have the answer, let us know!
Nodeprofile and other Nodefamily count-limited
One possible way, no-go:
http://api.drupal.org/api/function/hook_access/5
Unless we're the module that actually created the node type, we don't have access to hook_access, which is how Usernode hides itself:
/**
* Implementation of hook_access().
*/
function usernode_access($op, $node) {
global $user;
if ($op == 'create' || $op == 'delete') {
return FALSE;
}
if ($op == 'update') {
if ( (user_access('edit own usernode') && is_usernode($node))
|| user_access('edit usernodes') ) {
return TRUE;
}
}
}
There doesn't seem to be a nodeapi equivalent to hook_access. There's something though-- I bet I used it in Node Relativity Access Control: http://drupal.org/project/relativity_access
Resolution
More like this
- Disabling or moving node/add/[content-type] links from beneath "Add content" in the navigation menu also removes them from the Add content page (node/add)
- Agaric Wants: set 'view revisions' permission by content type
- Drupal wish: Configuration setting to make all content types default to create new revision
- Allow users to create a placeholder to relate or link to content they subsequently create
- Create a link for anonymous users only to proceed on to create content after registration


Comments
For now, Agaric just added
For now, Agaric just added this shameful hack to createcontentblock.module (adding the parts that have to do with "also_exclude"):
$types = node_get_types();
/* ben-agaric shameful hack */
$also_exclude = array('profile');
$exempt = array_merge(variable_get('og_node_types', array('og')), variable_get('og_omitted', array()), $also_exclude);
Post new comment