When a limit is reached and a user attempts to add limited content, the user is told "You can't create more content of type [content type]"; however, the user can still see links to node/add/[content type].

I'd use a call to _node_limit_violates_limit() to test whether a link should appear, but that function requires that I pass a node reference rather than a content type. I'd sure like some sort of API that allows me to check if a user is allowed to add content -- before they click the link.

Comments

liliplanet’s picture

Subscribe, thx!

It would also be great for the users to be able to see how many node's they are still able to create ..

Fabulous module, thank you.

Parkes Design’s picture

Subscribed sounds like a great feature!

mairav’s picture

Suscribing!

duaelfr’s picture

Status: Active » Closed (won't fix)

At this point, this issue is going to be marked as won't fix. This is either not in the direction of the project, or too out of the project scope.
However, this has been done in the 7.x version.

Anonymous’s picture

Can you give a little more info on how this can be done in the Drupal 7 version? Is it a different function than _node_limit_violates_limit() ?

Edit: for anyone else searching the answer is here - http://drupal.org/node/1627866