Commit be26442e authored by Joe Wheaton's avatar Joe Wheaton
Browse files

More coder module suggested changes.

parent e62f08a6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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,
+43 −39
Original line number Diff line number Diff line
@@ -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
@@ -59,6 +60,7 @@ Drupal.behaviors.vimeo = function(context) {
    // Add default loading
    vimeo_default();
  }
}

/**
 * Open jQuery UI dialog box.
@@ -172,3 +174,5 @@ function vimeo_helper() {
function vimeo_default() {
  var url = $("#vimeo-nav .default").click(); 
}

})(jQuery);
 No newline at end of file
+11 −3
Original line number Diff line number Diff line
@@ -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'),
    ),
  );
}

/**