Found this one by accident.

I imagine it's probably not something that's going to come up practically that often -- though what about views that show the full node, will they get that too?

Comments

joachim’s picture

Yup, it shows in Views that show 'full node'.

Berdir’s picture

I'm not sure if there is a clear way to only show the message on node view pages other than checking the menu path.

The message should only be shown to users with administrative permissions, so it's not a huge issue.

joachim’s picture

Hmm yes it's rather unfortunate that the $page parameter has gone completely -- this sort of use case could be used to argue it's a regression in Drupal core.

dgtlmoon’s picture

Category: bug » task

Not real sure how else to deal with this.. suggestions? not quite a bug.. but might need some better ideas to indicate that its a newsletter edition?

joachim’s picture

Category: task » bug

We should add the missing params to simplenews_scheduler_node_view() -- http://api.drupal.org/api/drupal/modules!node!node.api.php/function/hook... -- and only output the message if the node is full view.

This will still show on views that show full entity view though.

The only thing I can think of is to do a hack and check the path... or the slightly cleaner version, http://api.drupal.org/api/drupal/includes!menu.inc/function/menu_get_obj....

dgtlmoon’s picture

I think we can probably even remove this message altogether, because the admin will know when he see's the [newsletter] tab, what do you think?

Berdir’s picture

That would be possible. We could also add it to $node->content and expose it as an extra field, then admins can hide and show it on whatever content types they want it.