Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* @file
* Allow a view context to display its attachment(s).
*/
$plugin = array(
'title' => t('View pager'),
'category' => t('View context'),
'icon' => 'icon_views_page.png',
'description' => t('Display the view pager if there are no results.'),
'required context' => new ctools_context_required(t('View'), 'view'),
'defaults' => array(
'which' => array(),
),
);
/**
* Render the node_terms content type.
*/
function views_content_views_pager_content_type_render($subtype, $conf, $panel_args, $context) {
if (empty($context) || empty($context->data)) {
return;
}
// Build the content type block.
$block = new stdClass();
$block->module = 'views_pager';
$block->delta = $context->argument;
$block->title = '';
$block->content = '';
$output = views_content_context_get_output($context);
$block->content = $output['pager'];
return $block;
}
function views_content_views_pager_content_type_edit_form($form, &$form_state) {
}
function views_content_views_pager_content_type_edit_form_submit(&$form, &$form_state) {
// Kept so we guarantee we have a submit handler.
}
/**
* Returns the administrative title for a type.
*/
function views_content_views_pager_content_type_admin_title($subtype, $conf, $context) {
return t('"@context" pager', array('@context' => $context->identifier));
}