t('Minimal Example'), 'sample_url' => 'http://minimal.example.com/uN1qUeId', 'callback' => 'MODULE_minimal_example', 'regexp' => '/minimal\.example\.com\/([a-z0-9\-_]+)/i', 'ratio' => 4 / 3, ); $codecs['complete_example'] = array( 'name' => t('Complete Example'), 'sample_url' => 'http://complete.example.com/username/uN1qUeId', 'callback' => 'MODULE_complete_example', 'html5_callback' => 'MODULE_complete_example_html5', 'instructions' => t('Your Complete Example username can be the first URL argument or a sub-subdomain.'), 'regexp' => array( '/complete\.example\.com\/([a-z0-9\-_]+)\/([a-z0-9\-_]+)/i', '/([a-z0-9\-_]+)\.complete\.example\.com\/([a-z0-9\-_]+)/i', ), 'ratio' => 4 / 3, 'control_bar_height' => 25, ); return $codecs; } /** * Alters the codecs available to Video Filter. * * @param array $codecs */ function hook_video_filter_codec_info_alter(&$codecs) {} /** * Alters a video's attributes previous to rendering. * * @param array $video */ function hook_video_filter_video_alter(&$video) {}