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
    
  
  
    
  | function THEME_form_alter(&$form, $form_state, $form_id) { | |
| if( $form['#id'] == 'views-exposed-form-projects-page' ) { | |
| krumo($form['type']); | |
| $form['field_start_price_value']['#type'] = 'select'; | |
| $items = array(); | |
| for( $i = 50000; $i <= 1000000; $i += 10000 ) { | |
| if( $i > 200000 && $i < 700000) { | |
| $i += 15000; | 
  
    
      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
    
  
  
    
  | <?php | |
| /* | |
| 1. Add Entity Reference or Taxonomy Reference field to Entity of choice | |
| 2. Install jQuery Spectrum Color Plugin support (see link at #3) | |
| 3. Add Color field to Taxonomy (https://www.drupal.org/project/color_field) and for Widget Type select the Spectrum picker | |
| 4. Enable the input field by checking the box at field settings | |
| 5. Add the following code to your template.php | |
| */ | 
  
    
      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
    
  
  
    
  | // via https://www.drupal.org/node/223440 | |
| $conf['theme_debug'] = TRUE; | 
  
    
      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
    
  
  
    
  | <IfModule mod_headers.c> | |
| SetEnvIf Origin "^http(s)?://(.+\.)?(domain\.ext|domain2\.ext|domain3\.ext)$" origin_is=$0 | |
| Header always set Access-Control-Allow-Origin %{origin_is}e env=origin_is | |
| Header set Access-Control-Allow-Origin "*" | |
| </IfModule> | 
  
    
      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
    
  
  
    
  | SELECT concat('DROP TABLE IF EXISTS ', table_name, ';') | |
| FROM information_schema.tables | |
| WHERE table_schema = 'MyDatabaseName'; | 
  
    
      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
    
  
  
    
  | function theme_form_alter(&$form, &$form_state, $form_id) { | |
| $form['#attributes']['class'][] = 'clearfix'; | |
| if( $form['#form_id'] === "search_block_form" ) { | |
| $form['search_block_form']['#attributes']['placeholder'] = t('Zoeken') . "…"; | |
| } | |
| } | 
  
    
      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
    
  
  
    
  | field--your-collected-field--your-field-collection.tpl.php | 
  
    
      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
    
  
  
    
  | <?php | |
| function hook_form_alter(&$form, &$form_state, $form_id) { | |
| if( $form_id === "webform_client_form_nn" ) { // Update with actual form id | |
| $node_id = $form['submitted']['wagen']['#value']; // Define a field in webform that takes a get value as default | |
| $node = node_load( $node_id ); | |
| // If a node has been specificied via its nid (cid in url), we prefill the request field with the name and url of the car | 
  
    
      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
    
  
  
    
  | <?php | |
| $content['field_name'][0]['#item']['attributes']['attribute_name'] = 'value'; | |
| ?> | 
  
    
      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
    
  
  
    
  | function THEME_NAME_css_alter(&$css) | |
| { | |
| unset($css[drupal_get_path('module', 'system').'/system.theme.css']); | |
| unset($css[drupal_get_path('module','system').'/system.base.css']); | |
| unset($css[drupal_get_path('module', 'system').'/system.messages.css']); | |
| unset($css[drupal_get_path('module', 'comment').'/comment.css']); | |
| unset($css[drupal_get_path('module', 'field').'/theme/field.css']); | |
| unset($css[drupal_get_path('module', 'mollom').'/mollom.css']); | |
| unset($css[drupal_get_path('module', 'node').'/node.css']); | |
| unset($css[drupal_get_path('module', 'search').'/search.css']); | 
NewerOlder