Created
July 3, 2017 07:31
-
-
Save init90/1ed4d717511273db55a7f32177b1c5e8 to your computer and use it in GitHub Desktop.
Drupal 7, update entity path.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Implements hook_entity_info_alter(). | |
| */ | |
| function cba_webinar_entity_info_alter(&$entity_info) { | |
| // Update webinar event path. | |
| $entity_info['event']['bundles']['webinar']['crud']['add']['path'] = 'event/webinar/add'; | |
| $entity_info['event']['bundles']['webinar']['crud']['edit']['path'] = 'event/webinar/%eckentity/edit'; | |
| $entity_info['event']['bundles']['webinar']['crud']['delete']['path'] = 'event/webinar/%eckentity/delete'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment