Skip to content

Instantly share code, notes, and snippets.

@bcmiller
Created October 27, 2010 21:55
Show Gist options
  • Save bcmiller/650098 to your computer and use it in GitHub Desktop.
Save bcmiller/650098 to your computer and use it in GitHub Desktop.
add cloud front..
root@ip-172-19-1-3:/mnt/apci/main/www/sites/all# drush updatedb
The following updates are pending:
apci_media_mover module
6010 - Add cloudfront on media mover configs for Image node image to S3
Do you wish to run all pending updates? (y/n): y
Executing apci_media_mover_update_6010 [success]
CloudFront URL set to http://dj9tzph6mj8o.cloudfront.net/ for bucket [success]
bcmiller.allplayers.com.
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
'all' cache was cleared [success]
Finished performing updates. [ok]
root@ip-172-19-1-3:/mnt/apci/main/www/sites/all# drush cc all
WD php: Notice: Trying to get property of non-object in [error]
theme_date_display_combination() (line 80 of
/vol/apci/main/www/sites/all/modules/contrib/date/date/date.theme).
WD php: Notice: Trying to get property of non-object in [error]
theme_date_display_combination() (line 80 of
/vol/apci/main/www/sites/all/modules/contrib/date/date/date.theme).
WD php: Notice: Trying to get property of non-object in [error]
theme_date_display_combination() (line 80 of
/vol/apci/main/www/sites/all/modules/contrib/date/date/date.theme).
WD php: Notice: Trying to get property of non-object in [error]
theme_date_display_combination() (line 80 of
/vol/apci/main/www/sites/all/modules/contrib/date/date/date.theme).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
WD php: Notice: Undefined index: module in _menu_router_build() [error]
(line 2450 of /vol/apci/main/www/includes/menu.inc).
@bcmiller
Copy link
Author

/**

  • update a specific verb in a configuration
  • @param cid is a config id
  • @param verb is verb to match on
  • @param configuration is a serialized array
    */
    function media_mover_api_configuration_verb_update($cid, $verb, $configuration
    ) {
    db_query("UPDATE {media_mover_configurations} SET configuration = '%s' WHERE
    cid = %d AND verb = '%s'", $configuration, $cid, $verb);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment