Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
V
views
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Drupal.org issue queue
Drupal.org issue queue
Security & Compliance
Security & Compliance
Dependency List
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
project
views
Commits
9574bdd9
Commit
9574bdd9
authored
May 05, 2007
by
merlinofchaos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#130019
: Use the correct filter on textarea profile fields.
parent
9e771e94
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
CHANGELOG.txt
CHANGELOG.txt
+1
-0
modules/views_profile.inc
modules/views_profile.inc
+15
-0
No files found.
CHANGELOG.txt
View file @
9574bdd9
...
...
@@ -13,6 +13,7 @@ Views 5.x-dev
o #138481: (fago) Allow 'delete' link to return to view like edit link does.
o #124610: (KarenS) Allows other modules to add custom tabs to view admin.
o #137952: (dww) Fix some problems by not having enough options on default menu tabs.
o #130019: Use the correct filter on textarea profile fields.
New features:
o #132825: (lyricnz) Allow 'add comment' link as field.
...
...
modules/views_profile.inc
View file @
9574bdd9
...
...
@@ -94,6 +94,13 @@ function profile_views_add_field(&$table, $field) {
'handler'
=>
'views_handler_field_profile_checkbox'
,
);
break
;
case
'textarea'
:
$help
=
t
(
'Other types based profile field help'
);
$others
=
array
(
'sortable'
=>
true
,
'handler'
=>
'views_handler_field_profile_textarea'
,
);
break
;
default
:
$help
=
t
(
'Other types based profile field help'
);
$others
=
array
(
...
...
@@ -228,6 +235,14 @@ function views_handler_field_profile_selection($fieldinfo, $fielddata, $value, $
return
check_plain
(
implode
(
', '
,
$value
));
}
/**
* Default display method for a profile field
*/
function
views_handler_field_profile_textarea
(
$fieldinfo
,
$fielddata
,
$value
,
$data
)
{
$value
=
(
unserialize
(
$value
)
===
false
)
?
$value
:
unserialize
(
$value
);
return
check_markup
(
$value
);
}
/**
* Default display method for a profile field
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment