Experiments with hook_node_access // Conditionally blocking node access

For all users I need to conditionally block access to nodes of type 'message'. The only way users should be able to view these message nodes is by successfully submitting a form.

I've started like this:

      function mymodule_node_access($node, $op, $account) {
        if ($op == 'view' && $node->type == 'message') {
          return NODE_ACCESS_DENY;
        }
      }

However, I want to allow view access to individual nodes of this type upon successful submission of form:

Dynamic webform

I'd like to have a Contact Us webform that populates depending on the option selected in a listbox.

eg:

What yould you like to contact us about today ?
Apples | Oranges | Lemons

SUBMIT

Depending on the user choice, upon submitting the user is taken to another dedicated topic webform.

The default method is to send the form contents by email. I'd like to interrupt this behaviour to link to other webforms.

How can I achieve this ?

User that can create and manage some other users

Hi,

can you tell me how could I solve the following problem using drupal 7.x ?

- there are two kinds of users on the site: teachers and students
- teachers should be able to register student users, they become the teachers of the students they registered
- teachers should be able to manage their own students

do you have any ideas how to do this?

best regards, jb33

Drupal 7 bug tracker?

I'm in the progress of migrating all my websites to drupal 7 multisite. This is going rather well, however there's one thing that's currently blocking my move, and that's the lack of a bug/issue tracker module. On drupal 6 I'm currently using project issues, however according to this page they are still in the progress of adding complete drupal 6 support (And have been for over a year), while drupal 7 support hasn't even started, so I doubt I'll be using project on drupal 7 any time soon.

Contract or Part-Time for Drupal 7

Looking for someone that can come on part time, hourly, or contract basis that has experience working with the views module and drupal 7.
We need someone that can make several different views based off specific arguments, relationships, etc.
You can email me at jason @ tradeincool.com. We also use skype and get get you that contact information as well.
We are looking for someone ASAP.
When contacting please let me know your hourly rate and previous experience using or contributing to views.

search form

Hello
I have three vocabularies with some terms each one .
I wanna create a page(finder) that ll have 3 select lists. Each select list ll contain terms of each vocabulary.
I tried it with jumpmenu of views but this gives only one select list...

Can You help me

Kostas

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x