function video_cck_menu in Embedded Media Field 5
Implementation of hook_menu().
File
- contrib/
video_cck/ video_cck.module, line 486
Code
function video_cck_menu($may_cache) {
$items = array();
if (module_exists('thickbox')) {
if (!$may_cache) {
if (arg(0) == 'video-cck' && arg(1) == 'thickbox' && is_numeric(arg(2))) {
$node = node_load(arg(2));
if ($node->nid) {
$items[] = array(
'path' => 'video-cck/thickbox/' . arg(2),
'callback' => 'video_cck_thickbox',
'callback arguments' => array(
$node,
),
'access' => node_access('view', $node),
'type' => MENU_CALLBACK,
);
}
}
}
}
return $items;
}