Commit 72343ee1 authored by joelpittet's avatar joelpittet Committed by joelpittet

Issue #2959030 by ahana92, joelpittet: Maintaining Drupal coding standards

parent 8291c212
......@@ -181,7 +181,6 @@ function views_natural_sort_update_7201() {
/**
* Removing the queue because queuing didn't work out.
*/
function views_natural_sort_update_7202() {
DrupalQueue::get('views_natural_sort_index_queue')->deleteQueue();
}
......@@ -92,7 +92,7 @@ class ViewsNaturalSortBasicTest extends ViewsTestCase {
*/
public function testNaturalSortUnicodeSymbols() {
module_load_include('inc', 'views_natural_sort', 'views_natural_sort');
$symbols = variable_set('views_natural_sort_symbols_remove', "#…\",'\\()[]«?!»¡¿");
variable_set('views_natural_sort_symbols_remove', "#…\",'\\()[]«?!»¡¿");
$titles = array(
'Cuando… se abre, ¿dará algún tipo de señal?',
);
......@@ -146,6 +146,9 @@ class ViewsNaturalSortBasicTest extends ViewsTestCase {
);
}
/**
* Test storing long unicode values.
*/
public function testStoringLongUnicode() {
$node = $this->drupalCreateNode(array(
'type' => 'views_natural_sort_test_content',
......
......@@ -135,12 +135,14 @@ function views_natural_sort_text_field_views_natural_sort_queue_rebuild_data($en
return $data;
}
/**
* Implements hook_views_natural_sort_queue_rebuild_data_count().
*/
function views_natural_sort_text_field_views_natural_sort_queue_rebuild_data_count($entry_type) {
if (!in_array($entry_type, views_natural_sort_text_field_views_natural_sort_get_entry_types())) {
return array();
}
$field = field_info_field($entry_type['field']);
$data = array();
$bundles = array();
if (isset($field['bundles'][$entry_type['entity_type']])) {
......
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