Skip to main content
Tweeted twitter.com/#!/StackDrupal/status/259308616996225024
edited tags
Link
LLub
  • 3.7k
  • 4
  • 36
  • 69
deleted 62 characters in body; edited title
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

RULES, VIEWS: Remove contributor role when user deletes all of his content

0 down vote favorite

I have the following problem that I don't seem to be able to solve myself:

Today user BRIAN feels like creating some content, let's say 5 articles. I created a rule using the RULES MODULE that automatically assigns him the role CONTRIBUTOR after creating the first article.

Tomorrow Brian will realize that 4 of his articles weren't that great, and he decides to delete them. No problem, there is still one article out there authored by him and Brian is still a contributor! HOWEVER, as soon as Brian also deletes his very last piece of contributed content, I want him to lose his contributor role.

Big question: How do I put this into a rule?

On Brian's user profile, there is a VIEWS block listing all of Brian's content. The RULES BONUS PACK (http://drupal.org/project/rb) would let me check the number of results of this block and remove his contributor role as soon as the number of results drops down to 0. However, the module is still in development and I really don't want to use a dev-version on a productive website.

I read somewhere that the VIEWS BULK OPERATIONS module could do the job, but I really wouldn't know how. Could someone give me a hint, please?

Best, deinqwertz

RULES, VIEWS: Remove contributor role when user deletes all of his content

0 down vote favorite

I have the following problem that I don't seem to be able to solve myself:

Today user BRIAN feels like creating some content, let's say 5 articles. I created a rule using the RULES MODULE that automatically assigns him the role CONTRIBUTOR after creating the first article.

Tomorrow Brian will realize that 4 of his articles weren't that great, and he decides to delete them. No problem, there is still one article out there authored by him and Brian is still a contributor! HOWEVER, as soon as Brian also deletes his very last piece of contributed content, I want him to lose his contributor role.

Big question: How do I put this into a rule?

On Brian's user profile, there is a VIEWS block listing all of Brian's content. The RULES BONUS PACK (http://drupal.org/project/rb) would let me check the number of results of this block and remove his contributor role as soon as the number of results drops down to 0. However, the module is still in development and I really don't want to use a dev-version on a productive website.

I read somewhere that the VIEWS BULK OPERATIONS module could do the job, but I really wouldn't know how. Could someone give me a hint, please?

Best, deinqwertz

Remove contributor role when user deletes all of his content

I have the following problem that I don't seem to be able to solve myself:

Today user BRIAN feels like creating some content, let's say 5 articles. I created a rule using the RULES MODULE that automatically assigns him the role CONTRIBUTOR after creating the first article.

Tomorrow Brian will realize that 4 of his articles weren't that great, and he decides to delete them. No problem, there is still one article out there authored by him and Brian is still a contributor! HOWEVER, as soon as Brian also deletes his very last piece of contributed content, I want him to lose his contributor role.

How do I put this into a rule?

On Brian's user profile, there is a VIEWS block listing all of Brian's content. The RULES BONUS PACK (http://drupal.org/project/rb) would let me check the number of results of this block and remove his contributor role as soon as the number of results drops down to 0. However, the module is still in development and I really don't want to use a dev-version on a productive website.

I read somewhere that the VIEWS BULK OPERATIONS module could do the job, but I really wouldn't know how. Could someone give me a hint, please?

Source Link

RULES, VIEWS: Remove contributor role when user deletes all of his content

0 down vote favorite

I have the following problem that I don't seem to be able to solve myself:

Today user BRIAN feels like creating some content, let's say 5 articles. I created a rule using the RULES MODULE that automatically assigns him the role CONTRIBUTOR after creating the first article.

Tomorrow Brian will realize that 4 of his articles weren't that great, and he decides to delete them. No problem, there is still one article out there authored by him and Brian is still a contributor! HOWEVER, as soon as Brian also deletes his very last piece of contributed content, I want him to lose his contributor role.

Big question: How do I put this into a rule?

On Brian's user profile, there is a VIEWS block listing all of Brian's content. The RULES BONUS PACK (http://drupal.org/project/rb) would let me check the number of results of this block and remove his contributor role as soon as the number of results drops down to 0. However, the module is still in development and I really don't want to use a dev-version on a productive website.

I read somewhere that the VIEWS BULK OPERATIONS module could do the job, but I really wouldn't know how. Could someone give me a hint, please?

Best, deinqwertz