You are here

forward_page.inc in Forward 7.2

Same filename and directory in other branches
  1. 7.3 plugins/content_types/forward_page.inc

File

plugins/content_types/forward_page.inc
View source
<?php

$plugin = array(
  'title' => t('Forward link'),
  'description' => t('A forward link for this page.'),
  'category' => t('Widgets'),
  'render callback' => 'forward_panels_page_render',
);
function forward_panels_page_render($subtype, $conf, $panel_args) {

  // Build the link
  $widget_code = array(
    '#markup' => theme('forward_link', array()),
  );

  // Build the content type block.
  $block = new stdClass();
  $block->module = 'forward';
  $block->content = $widget_code;
  return $block;
}

Functions