This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
# | |
# Set CCK imagefields from node references | |
# by Mike Cantelon | |
# | |
# run this with Drush... example if named migration_script.php: | |
# drush -r /var/www/drupalroot -u "Mike Cantelon" php-script migration_script | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'optparse' | |
def get_user_param(prompt_text, default = '') | |
prompt = prompt_text | |
prompt += default.length > 0 ? ' [' + default + ']' : '' | |
puts prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jetpack.statusBar.append({ | |
html: "<i>IMG</i>", | |
width: 45, | |
onReady: function(widget){ | |
$(widget).click(function() { | |
jetpack.notifications.show("Extracting!"); | |
$(jetpack.tabs.focused.contentDocument) | |
.find('a > img') | |
.each(function() { | |
var src = $(this).parent().attr('href'); |
NewerOlder