I was able to have the module successfully embed a youtube video into a Forum post.

I was wondering, can the field I added to the Forum Topic content type be discovered inside the Rules engine? I can't find the field when sifting through data selection.

Comments

davidcsonka’s picture

Additional info:

I can use the condition "entity has field" and select the new Video embed field which I added to the node.

But when I try to do a "Data value is empty" condition check after the node is saved in order to make sure that the user has put something in that field, I can't find the field through the data selector.

m0d’s picture

It looks like, in order to be visible for Rules, this module has to integrate with the Entity API module http://drupal.org/node/878880

primozsusa’s picture

for the rules to see your video_embed_field add this to your module:

/**
* Implement hook_field_info_alter()
*/
function ts_video_migrate_field_info_alter(&$field_info) {
$field_info['video_embed_field']['property_type'] = 'uri';
}

then in rules you need to put your field into scope and it will be visible - usable also in actions - cool video about VBO and rules
http://commerceguys.com/blog/power-rules-views-bulk-operations-and-commerce

plopesc’s picture

Issue summary: View changes
Status: Active » Fixed

It should be fixed in 7.x-2.x-dev once #1978534: Support Entity Metadata framework and a56e1f2 has been committed.

Could someone test it and give me some feedback about the rules integration?

Regards.

Status: Fixed » Closed (fixed)

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