Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
project
drupal
Commits
d1cff734
Commit
d1cff734
authored
12 years ago
by
Daniel Wehner
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Some documentation cleanup in views_handler_field_field.
parent
6eb7dfed
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/field/views_handler_field_field.inc
+11
-4
11 additions, 4 deletions
modules/field/views_handler_field_field.inc
with
11 additions
and
4 deletions
modules/field/views_handler_field_field.inc
+
11
−
4
View file @
d1cff734
...
@@ -33,7 +33,9 @@ function _field_view_formatter_options($field_type = NULL) {
...
@@ -33,7 +33,9 @@ function _field_view_formatter_options($field_type = NULL) {
}
}
/**
/**
* A field that displays fields.
* A field that displays fieldapi fields.
*
* @ingroup views_field_handlers
*/
*/
class
views_handler_field_field
extends
views_handler_field
{
class
views_handler_field_field
extends
views_handler_field
{
/**
/**
...
@@ -43,7 +45,7 @@ class views_handler_field_field extends views_handler_field {
...
@@ -43,7 +45,7 @@ class views_handler_field_field extends views_handler_field {
public
$items
=
array
();
public
$items
=
array
();
/**
/**
* Store the field information
s
.
* Store the field information.
* @var array
* @var array
*/
*/
public
$field_info
=
array
();
public
$field_info
=
array
();
...
@@ -103,8 +105,10 @@ function init(&$view, &$options) {
...
@@ -103,8 +105,10 @@ function init(&$view, &$options) {
}
}
/**
/**
* Check whether current user has access to this handler.
*
* @return bool
* @return bool
* Return TRUE if the user has access to view this field.
*
Return TRUE if the user has access to view this field.
*/
*/
function
access
()
{
function
access
()
{
$base_table
=
$this
->
get_base_table
();
$base_table
=
$this
->
get_base_table
();
...
@@ -113,6 +117,9 @@ function access() {
...
@@ -113,6 +117,9 @@ function access() {
/**
/**
* Set the base_table and base_table_alias.
* Set the base_table and base_table_alias.
*
* @return string
* The base table which is used in the current view "context".
*/
*/
function
get_base_table
()
{
function
get_base_table
()
{
if
(
!
isset
(
$this
->
base_table
))
{
if
(
!
isset
(
$this
->
base_table
))
{
...
@@ -862,7 +869,7 @@ function set_items($values, $row_id) {
...
@@ -862,7 +869,7 @@ function set_items($values, $row_id) {
if
(
isset
(
$render_array
[
'#access'
]))
{
if
(
isset
(
$render_array
[
'#access'
]))
{
$items
[
$count
][
'rendered'
][
'#access'
]
=
$render_array
[
'#access'
];
$items
[
$count
][
'rendered'
][
'#access'
]
=
$render_array
[
'#access'
];
}
}
// Only add the raw field items (for use in tokens) if the curent user
// Only add the raw field items (for use in tokens) if the cur
r
ent user
// has access to view the field content.
// has access to view the field content.
if
((
!
isset
(
$items
[
$count
][
'rendered'
][
'#access'
])
||
$items
[
$count
][
'rendered'
][
'#access'
])
&&
!
empty
(
$render_array
[
'#items'
][
$count
]))
{
if
((
!
isset
(
$items
[
$count
][
'rendered'
][
'#access'
])
||
$items
[
$count
][
'rendered'
][
'#access'
])
&&
!
empty
(
$render_array
[
'#items'
][
$count
]))
{
$items
[
$count
][
'raw'
]
=
$render_array
[
'#items'
][
$count
];
$items
[
$count
][
'raw'
]
=
$render_array
[
'#items'
][
$count
];
...
...
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