Commit 76a2c47f authored by merlinofchaos's avatar merlinofchaos

#130019: Use the correct filter on textarea profile fields.

parent d85c2d41
......@@ -11,6 +11,7 @@ Views 4.7.x-dev
o #136794: Sort by nid via click-sorting was also broken
o #125973: (mfrederickson) Backport of internal views filter changes to 4.7 version.
o #138481: (fago) Allow 'delete' link to return to view like edit link does.
o #130019: Use the correct filter on textarea profile fields.
New features:
o #132825: (lyricnz) Allow 'add comment' link as field.
......
......@@ -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
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment