forward_page.inc in Forward 7.3
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) {
if (!user_access('access forward')) {
return;
}
$widget_code = array(
'#markup' => theme('forward_link', array()),
);
$block = new stdClass();
$block->module = 'forward';
$block->content = $widget_code;
return $block;
}