#Description#
Simple Dashing Job to display Trello info about your boards. Uses Trello API.
#Dependencies# ruby-trello
#Description#
Simple Dashing Job to display Trello info about your boards. Uses Trello API.
#Dependencies# ruby-trello
| /** | |
| * Delete fields and instancies | |
| */ | |
| function yourmodule_update_7002() { | |
| $bundles = array ( | |
| 'your_contentype' => array( | |
| 'field_yourfield', | |
| ), | |
| ); |
| (function($) { | |
| // updates the ... | |
| $.ajax({ | |
| url: "/my_module/update/" + Drupal.settings.my_module_node.nid, | |
| type: "POST", | |
| dataTypeString: "text" | |
| }); | |
| })(jQuery); |
| /** | |
| * Implements field_group_build_pre_render_alter. | |
| */ | |
| function iniciativas_field_group_build_pre_render_alter(&$element) { | |
| if (!isset($element['#view_mode']) && isset($element['group_edit_datos_basicos'])) { | |
| $element['group_edit_datos_basicos'] += array( | |
| '#states' => array( | |
| 'visible' => array( | |
| '#edit-field-iniciativa-tipo-und' => array('value' => 'individual'), | |
| ), |
| ; Source http://www.thingy-ma-jig.co.uk/blog/10-10-2006/mysql-drop-all-tables | |
| mysqldump -u[USERNAME] -p[PASSWORD] --add-drop-table --no-data [DATABASE] | grep ^DROP | mysql -u[USERNAME] -p[PASSWORD] [DATABASE] |
| # with Entity API | |
| $user = user_load('uidXXX'); | |
| $obj = entity_metadata_wrapper('user', $user); | |
| $obj->field_XXX = 'blah'; | |
| $obj->save(); | |
| # Other way | |
| $existing = user_load('uidXXX'); |
| Linux or Unix find and remove files with one find command on fly | |
| find . -name "FILE-TO-FIND"-exec rm -rf {} \; | |
| find . -type f -name "FILE-TO-FIND" -exec rm -f {} \; | |
| /** | |
| * Implements hook_block_info(). | |
| * | |
| * This hook declares what blocks are provided by the module. | |
| */ | |
| function stock_block_info() { | |
| $blocks['cart_quantity'] = array( | |
| 'info' => t('Cart Quantiy'), | |
| 'status' => TRUE, | |
| ); |
| @charset "UTF-8"; | |
| /* http://meyerweb.com/eric/tools/css/reset/ | |
| v2.0 | 20110126 | |
| License: none (public domain) | |
| */ | |
| html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video { | |
| margin: 0; | |
| padding: 0; | |
| border: 0; |
| /** | |
| * The first commented line is your dabblet’s title | |
| */ | |
| background: #f06; | |
| background: linear-gradient(45deg, #f06, yellow); | |
| min-height: 100%; |