Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49199

Having problem with list in a custom action

$
0
0

Hi there:

I'm new to Rules (and Drupal as a matter of fact), so would really appreciate any help on this problem I'm encountering.

I'm trying to create a new custom action that takes a list<taxonomy_term> parameter. For testing, I created a simple action set that takes an argument of list<taxonomy_term> as well. When I tried to execute the action_set within my code, using rules_invoke_component(), I get this error:

# Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 354 of /Applications/MAMP/htdocs/alegup-d7/includes/entity.inc).
# Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2039 of /Applications/MAMP/htdocs/alegup-d7/includes/database/database.inc).

The arguments I passed into rules_invoke_component() are (1) the action_set name; and (2) array of taxonomy terms that I built myself using

$taxonomies[] = taxonomy_term_load(5);

, etc.

If it helps, the versions I'm using are: Rules 7.x-2.x-dev, Entity API 7.x-1.0-beta7

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 49199

Trending Articles