Skip to content

Commit bc6354d

Browse files
committed
rename constant
1 parent 2146892 commit bc6354d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

plugins/views/views_callback_handler_field.inc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class views_callback_handler_field extends views_handler_field {
1212
const CLICK_SORT_ALPHA_CASE = 3;
1313
const CLICK_SORT_NAT = 4;
1414
const CLICK_SORT_NAT_CASE = 5;
15-
const CLICK_SORT_PHP = 6;
15+
const CLICK_SORT_CALLBACK = 6;
1616

1717
protected $callback_static_variable = NULL;
1818

@@ -68,12 +68,12 @@ class views_callback_handler_field extends views_handler_field {
6868
self::CLICK_SORT_ALPHA_CASE => t('Sort alphabetically (case insensitive)'),
6969
self::CLICK_SORT_NAT => t('Sort using a "natural order" algorithm'),
7070
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'),
7272
);
7373
$form['use_callback_click_sortable']['#default_value'] = $this->options['use_callback_click_sortable'];
7474
$form['callback_click_sortable']['#states'] = array(
7575
'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),
7777
),
7878
);
7979
$form += views_callback_form_element($this,
@@ -152,7 +152,7 @@ class views_callback_handler_field extends views_handler_field {
152152

153153
// If we're sorting, do the actual sorting then fix the results as per the pager info.
154154
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) {
156156
if (!empty($this->options['callback_click_sortable'])) {
157157
$this->callback_click_sort_function = TRUE;
158158
}
@@ -184,7 +184,7 @@ class views_callback_handler_field extends views_handler_field {
184184
$function = $this->options['callback_click_sortable'];
185185
}
186186

187-
if ($this->options['use_callback_click_sortable'] == self::CLICK_SORT_PHP) {
187+
if ($this->options['use_callback_click_sortable'] == self::CLICK_SORT_CALLBACK) {
188188
foreach (array('row1' => 'normalized_row1', 'row2' => 'normalized_row2') as $name => $normalized_name) {
189189
$$normalized_name = new stdClass();
190190
foreach ($this->view->display_handler->get_handlers('field') as $field => $handler) {

0 commit comments

Comments
 (0)