function brightcove_player_ui::init in Brightcove Video Connect 7.3
Same name and namespace in other branches
- 7.4 plugins/export_ui/brightcove_player_ui.class.php \brightcove_player_ui::init()
- 7.5 plugins/export_ui/brightcove_player_ui.class.php \brightcove_player_ui::init()
Fake constructor.
Overrides ctools_export_ui::init
See also
File
- plugins/
export_ui/ brightcove_player_ui.class.php, line 14 - Class brightcove_player_ui
Class
- brightcove_player_ui
- @file Class brightcove_player_ui
Code
function init($plugin) {
// Adding a menu op for setting default player.
$prefix_count = count(explode('/', $plugin['menu']['menu prefix']));
$plugin['menu']['items']['set-default'] = array(
'path' => 'list/%ctools_export_ui/set-default',
'title' => 'Set default',
'page callback' => 'ctools_export_ui_switcher_page',
'page arguments' => array(
$plugin['name'],
'set_default',
$prefix_count + 2,
),
'load arguments' => array(
$plugin['name'],
),
'access callback' => 'ctools_export_ui_task_access',
'access arguments' => array(
$plugin['name'],
'set_default',
$prefix_count + 2,
),
'type' => MENU_CALLBACK,
);
$plugin['menu']['items']['list callback']['type'] = MENU_LOCAL_TASK;
parent::init($plugin);
module_load_include('inc', 'brightcove', 'brightcove.admin');
}