@@ -12,7 +12,7 @@ class views_callback_handler_field extends views_handler_field {
12
12
const CLICK_SORT_ALPHA_CASE = 3 ;
13
13
const CLICK_SORT_NAT = 4 ;
14
14
const CLICK_SORT_NAT_CASE = 5 ;
15
- const CLICK_SORT_PHP = 6 ;
15
+ const CLICK_SORT_CALLBACK = 6 ;
16
16
17
17
protected $ callback_static_variable = NULL ;
18
18
@@ -68,12 +68,12 @@ class views_callback_handler_field extends views_handler_field {
68
68
self ::CLICK_SORT_ALPHA_CASE => t ('Sort alphabetically (case insensitive) ' ),
69
69
self ::CLICK_SORT_NAT => t ('Sort using a "natural order" algorithm ' ),
70
70
self ::CLICK_SORT_NAT_CASE => t ('Sort using a "natural order" algorithm (case insensitive) ' ),
71
- self ::CLICK_SORT_PHP => t ('Sort using custom a custom callback ' ),
71
+ self ::CLICK_SORT_CALLBACK => t ('Sort using custom a custom callback ' ),
72
72
);
73
73
$ form ['use_callback_click_sortable ' ]['#default_value ' ] = $ this ->options ['use_callback_click_sortable ' ];
74
74
$ form ['callback_click_sortable ' ]['#states ' ] = array (
75
75
'visible ' => array (
76
- ':input[name="options[use_callback_click_sortable]"] ' => array ('value ' => (string ) self ::CLICK_SORT_PHP ),
76
+ ':input[name="options[use_callback_click_sortable]"] ' => array ('value ' => (string ) self ::CLICK_SORT_CALLBACK ),
77
77
),
78
78
);
79
79
$ form += views_callback_form_element ($ this ,
@@ -152,7 +152,7 @@ class views_callback_handler_field extends views_handler_field {
152
152
153
153
// If we're sorting, do the actual sorting then fix the results as per the pager info.
154
154
if (!empty ($ this ->options ['use_callback_click_sortable ' ]) && !empty ($ this ->callback_click_sort_order )) {
155
- if ($ this ->options ['use_callback_click_sortable ' ] == self ::CLICK_SORT_PHP ) {
155
+ if ($ this ->options ['use_callback_click_sortable ' ] == self ::CLICK_SORT_CALLBACK ) {
156
156
if (!empty ($ this ->options ['callback_click_sortable ' ])) {
157
157
$ this ->callback_click_sort_function = TRUE ;
158
158
}
@@ -184,7 +184,7 @@ class views_callback_handler_field extends views_handler_field {
184
184
$ function = $ this ->options ['callback_click_sortable ' ];
185
185
}
186
186
187
- if ($ this ->options ['use_callback_click_sortable ' ] == self ::CLICK_SORT_PHP ) {
187
+ if ($ this ->options ['use_callback_click_sortable ' ] == self ::CLICK_SORT_CALLBACK ) {
188
188
foreach (array ('row1 ' => 'normalized_row1 ' , 'row2 ' => 'normalized_row2 ' ) as $ name => $ normalized_name ) {
189
189
$ $ normalized_name = new stdClass ();
190
190
foreach ($ this ->view ->display_handler ->get_handlers ('field ' ) as $ field => $ handler ) {
0 commit comments