5 * Allow a view context to display its attachment(s).
9 'title' => t('View empty text'),
10 'category' => t('View context'),
11 'icon' => 'icon_views_page.png',
12 'description' => t('Display the view empty text if there are no results.'),
13 'required context' => new ctools_context_required(t('View'), 'view'),
17 * Render the node_terms content type.
19 function views_content_views_empty_content_type_render($subtype, $conf, $panel_args, $context) {
20 if (empty($context) || empty($context->data)) {
24 // Build the content type block.
25 $block = new stdClass();
26 $block->module = 'views_empty';
27 $block->delta = $context->argument;
31 $output = views_content_context_get_output($context);
32 if (isset($output['empty'])) {
33 $block->content = $output['empty'];
39 function views_content_views_empty_content_type_edit_form($form, &$form_state) {
40 // This form does nothing; it exists to let the main form select the view context.
44 function views_content_views_empty_content_type_edit_form_submit(&$form, &$form_state) {
45 // Kept so we guarantee we have a submit handler.
49 * Returns the administrative title for a type.
51 function views_content_views_empty_content_type_admin_title($subtype, $conf, $context) {
52 return t('"@context" empty text', array('@context' => $context->identifier));