Skip to content

Commit a2c34a2

Browse files
committed
Merge branch 'develop'
2 parents 1a1fd05 + e841699 commit a2c34a2

File tree

3 files changed

+51
-2
lines changed

3 files changed

+51
-2
lines changed

modules/loop_search_node/loop_search_node.module

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,39 @@ function loop_search_node_menu() {
2121
return $items;
2222
}
2323

24+
/**
25+
* Implements hook_comment_insert().
26+
*
27+
* Update search index based on comment changes.
28+
*/
29+
function loop_search_node_comment_insert($comment) {
30+
if ($comment->nid) {
31+
search_api_track_item_change('node', array($comment->nid));
32+
}
33+
}
34+
35+
/**
36+
* Implements hook_comment_update().
37+
*
38+
* Update search index based on comment changes.
39+
*/
40+
function loop_search_node_comment_update($comment) {
41+
if ($comment->nid) {
42+
search_api_track_item_change('node', array($comment->nid));
43+
}
44+
}
45+
46+
/**
47+
* Implements hook_comment_delete().
48+
*
49+
* Update search index based on comment changes.
50+
*/
51+
function loop_search_node_comment_delete($comment) {
52+
if ($comment->nid) {
53+
search_api_track_item_change('node', array($comment->nid));
54+
}
55+
}
56+
2457
/**
2558
* Menu callback that generates post node add form.
2659
*
@@ -133,7 +166,9 @@ function loop_search_node_js_alter(&$javascript) {
133166
}
134167
}
135168

136-
169+
/**
170+
* Implements hook_local_rebuild_js_alter().
171+
*/
137172
function loop_search_node_local_rebuild_js_alter(&$translations, $language) {
138173
// Construct the array for JavaScript translations.
139174
// Only add strings with a translation to the translations array.

modules/loop_search_node_settings/loop_search_node_settings.module

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ function loop_search_node_settings_search_node_page_configuration_alter(&$conf,
1616
'field' => 'type',
1717
'name' => 'Type',
1818
'type' => 'or',
19-
'terms' => array(),
19+
'terms' => array(
20+
'external_sources' => array(
21+
'value' => 'external_sources',
22+
),
23+
'loop_documents_document' => array(
24+
'value' => 'loop_documents_document',
25+
),
26+
'loop_documents_collection' => array(
27+
'value' => 'loop_documents_collection',
28+
),
29+
'post' => array(
30+
'value' => 'post',
31+
),
32+
),
2033
);
2134
}

themes/loop/templates/search/angular/pager.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
class="pager"
55
hide-if-empty="true"
66
page="pager.page + 1"
7+
page-size="pager.size"
78
total="pager.max"
89
show-prev-next="true"
910
show-first-last="true"

0 commit comments

Comments
 (0)