Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
registration-3400706
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
registration-3400706
Commits
f07fd744
Commit
f07fd744
authored
12 years ago
by
Lev Tsypin
Browse files
Options
Downloads
Patches
Plain Diff
Add entity to registration object when rendering field as a form.
parent
72a8f51a
Branches
3.x
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/registration.field.inc
+1
-0
1 addition, 0 deletions
includes/registration.field.inc
with
1 addition
and
0 deletions
includes/registration.field.inc
+
1
−
0
View file @
f07fd744
...
...
@@ -125,6 +125,7 @@ function registration_field_formatter_view($entity_type, $entity, $field, $insta
$registration
=
entity_get_controller
(
'registration'
)
->
create
(
array
(
'type'
=>
$reg_type
->
name
));
$registration
->
entity_id
=
$entity_id
;
$registration
->
entity_type
=
$entity_type
;
$registration
->
entity
=
entity_load_single
(
$entity_type
,
$entity_id
);
$element
[
0
]
=
drupal_get_form
(
'registration_form'
,
$registration
);
}
break
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment