Commit 9574bdd9 authored by merlinofchaos's avatar merlinofchaos

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

parent 9e771e94
......@@ -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.
......
......@@ -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