download Video.js and extract it into the %directory directory.', array('!url' => url('http://videojs.com'), '%directory' => variable_get('videojs_directory', 'sites/all/libraries/video-js'))); $requirements['videojs']['severity'] = REQUIREMENT_ERROR; } elseif (version_compare($videojs_version, '3', '<')) { $requirements['videojs']['value'] = t('Unsupported version @version', array('@version' => $videojs_version)); $requirements['videojs']['description'] = t('The installed Video.js library is not supported. This version of the Video.js module only supports Video.js version 3. Download Video.js version 3 and extract it into the %directory directory or download Video.js module version 7.x-1.x to use Video.js 2.', array('@videojs-url' => url('http://videojs.com'), '%directory' => variable_get('videojs_directory', 'sites/all/libraries/video-js'), '@videojs-module-url' => url('http://drupal.org/project/videojs'))); $requirements['videojs']['severity'] = REQUIREMENT_ERROR; } else { $requirements['videojs']['value'] = $videojs_version; $requirements['videojs']['severity'] = REQUIREMENT_OK; } } return $requirements; } /** * Implements hook_uninstall(). */ function videojs_uninstall() { variable_del('videojs_directory'); variable_del('videojs_autoplay'); variable_del('videojs_width'); variable_del('videojs_height'); variable_del('videojs_skin'); } /** * Remove obsolete variable videojs_skin. */ function videojs_update_7200() { variable_del('videojs_skin'); return array(); }