Loading vimeo.install +4 −4 Original line number Diff line number Diff line Loading @@ -55,24 +55,24 @@ function vimeo_schema() { $schema['vimeo_sources'] = array( 'fields' => array( 'sid' => array( 'description' => t('The primary identifier for a Vimeo source.'), 'description' => 'The primary identifier for a Vimeo source.', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE), 'vid' => array( 'description' => t('The Vimeo identifier for a Vimeo source.'), 'description' => 'The Vimeo identifier for a Vimeo source.', 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), 'type' => array( 'description' => t('The Vimeo identifier for a Vimeo source.'), 'description' => 'The Vimeo identifier for a Vimeo source.', 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), 'name' => array( 'description' => t('The name of an mp3 player.'), 'description' => 'The name of an mp3 player.', 'type' => 'varchar', 'length' => 64, 'not null' => TRUE, Loading vimeo.js +43 −39 Original line number Diff line number Diff line Loading @@ -5,11 +5,12 @@ * * All the javascript for Vimeo */ (function ($) { /** * Make things happen on page load */ Drupal.behaviors.vimeo = function(context) { Drupal.behaviors.vimeo = { attach: function(context) { var protection = false; // Add on click function for browse button Loading Loading @@ -59,6 +60,7 @@ Drupal.behaviors.vimeo = function(context) { // Add default loading vimeo_default(); } } /** * Open jQuery UI dialog box. Loading Loading @@ -172,3 +174,5 @@ function vimeo_helper() { function vimeo_default() { var url = $("#vimeo-nav .default").click(); } })(jQuery); No newline at end of file vimeo.module +11 −3 Original line number Diff line number Diff line Loading @@ -26,8 +26,16 @@ function vimeo_help($path, $arg) { /** * Implementation of hook_perm(). */ function vimeo_perm() { return array('administer vimeo', 'insert vimeo videos'); function vimeo_permission() { return array( 'administer vimeo' => array( 'title' => t('Administer Vimeo'), 'description' => t('Perform administration tasks for Vimeo fields'), ), 'insert vimeo videos' => array( 'title' => t('Insert Vimeo Videos'), ), ); } /** Loading Loading
vimeo.install +4 −4 Original line number Diff line number Diff line Loading @@ -55,24 +55,24 @@ function vimeo_schema() { $schema['vimeo_sources'] = array( 'fields' => array( 'sid' => array( 'description' => t('The primary identifier for a Vimeo source.'), 'description' => 'The primary identifier for a Vimeo source.', 'type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE), 'vid' => array( 'description' => t('The Vimeo identifier for a Vimeo source.'), 'description' => 'The Vimeo identifier for a Vimeo source.', 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), 'type' => array( 'description' => t('The Vimeo identifier for a Vimeo source.'), 'description' => 'The Vimeo identifier for a Vimeo source.', 'type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), 'name' => array( 'description' => t('The name of an mp3 player.'), 'description' => 'The name of an mp3 player.', 'type' => 'varchar', 'length' => 64, 'not null' => TRUE, Loading
vimeo.js +43 −39 Original line number Diff line number Diff line Loading @@ -5,11 +5,12 @@ * * All the javascript for Vimeo */ (function ($) { /** * Make things happen on page load */ Drupal.behaviors.vimeo = function(context) { Drupal.behaviors.vimeo = { attach: function(context) { var protection = false; // Add on click function for browse button Loading Loading @@ -59,6 +60,7 @@ Drupal.behaviors.vimeo = function(context) { // Add default loading vimeo_default(); } } /** * Open jQuery UI dialog box. Loading Loading @@ -172,3 +174,5 @@ function vimeo_helper() { function vimeo_default() { var url = $("#vimeo-nav .default").click(); } })(jQuery); No newline at end of file
vimeo.module +11 −3 Original line number Diff line number Diff line Loading @@ -26,8 +26,16 @@ function vimeo_help($path, $arg) { /** * Implementation of hook_perm(). */ function vimeo_perm() { return array('administer vimeo', 'insert vimeo videos'); function vimeo_permission() { return array( 'administer vimeo' => array( 'title' => t('Administer Vimeo'), 'description' => t('Perform administration tasks for Vimeo fields'), ), 'insert vimeo videos' => array( 'title' => t('Insert Vimeo Videos'), ), ); } /** Loading