function swftools_flexpaper_swftools_methods in SWF Tools 6.3
Implementation of hook_swftools_methods().
File
- flexpaper/
swftools_flexpaper.module, line 11 - Enables SWF Tools support for the FlexPaper PDF viewer.
Code
function swftools_flexpaper_swftools_methods() {
// Define the FlexPaper handler
$flexpaper = array(
'module' => 'swftools_flexpaper',
'title' => t('FlexPaper'),
'download' => 'http://flexpaper.devaldi.com/',
'width' => 600,
'height' => 500,
'library' => swftools_get_library('flexpaper') . '/FlexPaperViewer.swf',
'profile' => array(
'path' => 'flexpaper',
'settings' => array(
'swftools_flexpaper',
),
'file' => 'swftools_flexpaper.admin.inc',
'page argument' => 'swftools_flexpaper_profile_form',
),
);
// FlexPaper is used as a container for swf files
$methods['swf']['flexpaper'] = $flexpaper;
// Return methods that the player supports
return $methods;
}