function imageeditor_webcams_photobooth in Image Editor 7
Page callback for Photobooth webcam.
1 string reference to 'imageeditor_webcams_photobooth'
- imageeditor_webcams_menu in imageeditor_webcams/
imageeditor_webcams.module - Implements hook_menu().
File
- imageeditor_webcams/
imageeditor_webcams.pages.inc, line 30 - Different pages for Image Editor Webcams module.
Code
function imageeditor_webcams_photobooth() {
if (module_exists('libraries')) {
drupal_add_js(libraries_get_path('photobooth') . '/photobooth_min.js', array(
'scope' => 'footer',
));
}
else {
drupal_add_js('sites/all/libraries/photobooth' . '/photobooth_min.js', array(
'scope' => 'footer',
));
}
$path = drupal_get_path('module', 'imageeditor_webcams');
drupal_add_js($path . '/js/imageeditor.photobooth.js', array(
'scope' => 'footer',
));
drupal_add_css($path . '/css/imageeditor_webcams.css');
return theme('imageeditor_webcams');
}