function jplayer_protect_menu in jPlayer 7.2
Same name and namespace in other branches
- 6 jplayer_protect/jplayer_protect.module \jplayer_protect_menu()
@file Provides basic content protection for media files accessed with jPlayer.
File
- jplayer_protect/
jplayer_protect.module, line 8 - Provides basic content protection for media files accessed with jPlayer.
Code
function jplayer_protect_menu() {
$items = array();
$items['admin/reports/jplayer-protect'] = array(
'title' => 'jPlayer content protection statistics',
'page callback' => 'jplayer_protection_statistics',
'access arguments' => array(
'access site reports',
),
'description' => 'View statistics related to content protection for jPlayer.',
'file' => 'jplayer_protect.admin.inc',
'file path' => drupal_get_path('module', 'jplayer_protect'),
);
$items['jplayer_protect/authorize'] = array(
'title' => 'jPlayer content authorization',
'page callback' => 'jplayer_protect_authorize',
'delivery callback' => 'ajax_deliver',
'access arguments' => array(
'access content',
),
'description' => 'jPlayer callback to authorize a sound file to be accessed.',
'type' => MENU_CALLBACK,
);
return $items;
}