I have created a custom action to send an e-mail. I would think this should show up under system when adding an action to a triggered rule.

Unfortunately it does not appear on the list. I believe there may be a troubled update pertaining to rules.

Is there a way to fully back-out the installation by altering my database directly and re-install the module? or is there something silly I am over-looking? or did I find a legit bug?

Sorry if I know not enough to properly post, but it appears to be a unique problem, as searching the forums and the internet at large has led only to fail on my part.

Comments

klausi’s picture

Rules caches action information - resubmit your modules page to clear the cache.
Developer information in the handbook: http://drupal.org/node/298486

ddwornik’s picture

Any other ideas? This does not work.

Some more info from me:
It broke when I noticed the module was not installed in sites/all, and instead in /modules. I ran a DB update and utter fail. I then tried moving the files back (to the wrong place) and still failure.

In the end to get drupal working properly I had to delete all the rules related tables (except the cache one, who's deletion caused more errors, so I cleared the cache, but left it there), and move the module back to /modules.

Things work, I can create rules, and use actions etc., but when I add new actions they do not show up.

klausi’s picture

What do you mean by "new actions"? Did you write a separate module with Rules integration? Did you implement hook_rules_action_info() correctly?

ddwornik’s picture

I simply mean creating an action to send an e-mail using the site config -> actions -> manage actions and creating and advanced action to send an e-mail.

Before I broke everything it was working, and then my send e-mail actions I created no longer appear under system for adding an action to a rule.

I've tried re-creating the actions, and they don't appear either.

klausi’s picture

Aha, you created a core action ...

Well, you could simply use the rules action "Send a mail to an arbitrary mail address" and fill out your settings there.

ddwornik’s picture

I will in a pinch, but it doesn't appear to take things like %node_type and %node_url (I used it initially).

I had things working until I tried to clean it up by moving the "rules" module. It appears I found a way to break things uniquely (google failed me), and since I didn't have a recent enough database back-up I was hoping somebody may have a tip.

klausi’s picture

If you install the token module, you can use a lot more replacements in the rules action, like [node:type] or [node:site-url]/node/[node:nid] in your case.

rakeshakurathi’s picture

i have the same problem

it doesn't show up in rules i have to use actions because i m using views bulk operations

any other ways to do that

tallsimon’s picture

I have the same problem, I just want to display a message to a user, but this action is not available to rules?? Even after adding as advanced action, de-activating and re-activating rules module.

mitchell’s picture

Component: User interface » Miscellaneous
Status: Active » Fixed

#1: Configuring actions outside of rules is not a common practice. The rules admin ui works very well for configuring your system to send custom emails. As klausi said, an amazing benefit when using rules is its integration with the token module. This makes it much easier to customize emails.

There are many other actions you can configure at that time, and you can also install other modules that integrate with rules.

#6: Moving files around can be dangerous. It's important to make sure your system runs properly so that you don't end up searching how to fix Drupal or rules when it's really somewhere in the LAMP, etc.

#8: VBO interferes with system actions being displayed in rules? Please restart the conversation in a new issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

kha’s picture

Great!! I was looking for half an hour to fix the problem. Resubmitting the module's page, I didn't think about it.

Thanks

mitchell’s picture

Component: Miscellaneous » Rules Core

Updated component.