next question = I have create, delete, and update rules on registration entities - what's the story on validation and form access? This may again be something I'm missing, just curious, thank you
next question = I have create, delete, and update rules on registration entities - what's the story on validation and form access? This may again be something I'm missing, just curious, thank you
Comments
Comment #1
tedbowHere are the docs so far: https://www.drupal.org/node/2176867
There is 1 page under this one.
Comment #2
alibama commentedCool = I'm going to mark this as fixed then and follow up on the registration side https://www.drupal.org/node/2306971
Comment #3
alibama commentedComment #4
alibama commentedhey man - not to drag this along on your end but
/**
* Implements hook_entity_rules_info().
*/
function entityform_entity_rules_info() {
$type_info['entityform']['forms'] = array('entityform_edit_form');
return $type_info;
}
is what I'm seeing on the entityform.module side = without guessing too much do you think this might be the simple solution on registration.module?
Thanks
Comment #5
tedbow@alibama you are on the right track.
The problem is that for validation and form access Rules, Entity Rules needs to know the add/edit form connected to an entity. There is uniform way to figure this out in Drupal 7)(shouldn't be a problem in D8 I hope).
So hook_entity_rules_info allows other modules to inform Entity Rules about the add/edit form for an Entity for validation and form access Rules to work.
So this could either be added to the Registration module or you could make a very simple custom module that would do on behalf of Registration.
So you could submit a patch to the Registration. I do see in Entity Rules I did start to do this for other modules:
But I don't know if this a good idea because I would have to check each one to see if actually worked.
*** Also for a bonus it would be great if someone filed a patch for this module that create a entity_rules.api.php file to explain this hook.
Comment #6
alibama commentedcool = I'm going to test this out tonight and I'll rsvp here and on registration. Thanks again, have a great day