Hello Folks,
Great module thanks. I have an additional requirement that has come up after the fact which I've detailed on stackexchange here:
https://drupal.stackexchange.com/questions/146520/restrict-node-view-to-users-by-registration-date
In short I'm trying to:
I used the suggested code from a kind helper there but it's not working for me. I created an enabeld a custom moduel with the following:
<?php
function node_access_byregdate($node, $op, $account) {
$type = is_string($node) ? $node : $node->type;
if ($op == 'view') {
global $user; // get current user
// check user register date
if ($user->created < $node->created) {
return NODE_ACCESS_DENY;
}
}
// Returning nothing from this function would have the same effect.
return NODE_ACCESS_IGNORE;
}
Any assitance would be greatly appreicated. Thanks in advance.
Postponed: needs info
1.4
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.