Is there a conditional statement we can use to determine if the limit has been met.

I use /node/add in my node body several places and would like for it to "disappear" if the limit has been me

Comments

duaelfr’s picture

The latest version overrides node/add/XXX pages access callback to allow the links to disappear when the limit is met. It works well in menus interface for example.

netentropy’s picture

I saw that. Great feature, but that's not exactly what I was asking (poor working on my part)

I need something like

IF (whatever checks if limit has been met) THEN print this

duaelfr’s picture

With the last dev you can try to use

if (node_limit_access($node_type_machine_name)) {
  print 'your link';
}

It will not cover all the possible use cases but most of them.

duaelfr’s picture

Status: Active » Closed (fixed)