stborchert

View: Quiz results

  1. $view = new view;
  2. $view->name = 'quiz_results';
  3. $view->description = '';
  4. $view->tag = '';
  5. $view->base_table = 'quiz_node_properties';
  6. $view->human_name = 'Quiz results';
  7. $view->core = 6;
  8. $view-

für Elise

  1. /**
  2.  * Implementation of hook_install().
  3.  */
  4. function imagefield_description_cropfix_install() {
  5.   db_query('UPDATE {system} SET weight = -1 WHERE name = "%s"', 'imagefield_description_cropfix');

Fix for image

  1.     // Get the recipes Image
  2.     $image = $node->field_recipes_picture[0];
  3.     // Load default image.
  4.     $themed_image = theme('image', $theme_path .'/images/search-result-recipe-default.png', 're

image

  1. // Get the recipes Image
  2. $image = $node->field_recipes_picture[0];
  3. // Load default image.
  4. $themed_image = theme('image', $theme_path .'/images/search-result-recipe-default.png', 'recipe image');
  5. $

schema

  1. function msnf_schema() {
  2.   $schema['msnf_step'] = array(
  3.     'export' => array(
  4.      
  5.     ),
  6.     'fields' => array(
  7.       'step_type' => array(
  8.         'type' => 'varchar',
  9.         'length'

Fix for Code

  1. drupal_add_js('(function ($) {
  2.  $("#waterwheel-carousel-horizon").waterwheelCarousel({
  3.    startingWaveSeparation: 0,
  4.    centerOffset: 30,
  5.    startingItemSeparation: 150,
  6.    itemSeparationFac

search template

  1.   <!-- Ingredient search accordion block -->
  2.   <h2><?php print $header_ingredient_search; ?></h2>
  3.   <div class="accordion-page ingredient-search clear-block">
  4.     <?php
  5.       $cur = 0;
  6.       wh

Fix for Code

  1. // in tmrc_search_forum.module
  2. /**
  3.  * Implementation of hook_menu_alter().
  4.  */
  5. function tmrc_solr_forum_menu_alter(&$items) {
  6.   $items['search/tmrc_solr_forum/%menu_tail']['#weight'] = 3;
  7. }
  8.  
  9. /

Code

  1. // in tmrc_search_forum.module
  2. function tmrc_search_forum_menu_link_alter(&$item, $menu) {
  3.   if ($item['link_path'] == 'search/tmrc_solr_forum/%menu_tail') {
  4.     $item['#weight'] = 1;
  5.   }
  6. }
  7.  
  8. //

Fix for Fix for Code

  1. function ww_events_install() {
  2.   // Get vocabulary id by known uuid.
  3.   $vid_1 = tmrc_controller_get_vid_by_uuid('6759fa82-5620-11e0-82ef-7635a7a74f94');
  4.   $vid_2 = tmrc_controller_get_vid_by_uuid('

Fix for Code

  1. function ww_events_install() {
  2.   // Get vocabulary id by known uuid.
  3.   $options = array(
  4.     tmrc_controller_get_vid_by_uuid('6759fa82-5620-11e0-82ef-7635a7a74f94') => 1,
  5.     tmrc_controller_get_v

Fix for Code

  1. /**
  2.  * Computed code for the field_event_order_link.
  3.  */
  4. function computed_field_field_event_order_link_compute(&$entity_field, $entity_type, $entity, $field, $instance, $langcode, $items) {
  5.  
  6.   $

Fix for ckeditor settings

  1. <?php
  2. function ckeditor_settings_wysiwyg_editor_settings_alter(&$settings, $context) {
  3.   if ($context['profile']->editor == 'ckeditor') {
  4.     // disable 'spell-check-as-you-type' option by default

hook_views_default_views_alter

  1. function guestbook_views_default_views_alter(&$views) {
  2.   if (isset($views['guestbook'])) {
  3.     // Set items per page.
  4.     $items_per_page = 0;
  5.     if (isset($views['guestbook']->display['page_gue

Fix for Fix for js

  1. <?php
  2. drupal_add_js("(function ($) {
  3.  $('#imageID').click(function() {
  4.    $('#ytapiplayer2').show();
  5.    $('#imageID').hide();
  6.  });
  7. })(jQuery);", array('type' => 'inline', 'scope' => 'footer

Fix for js

  1. <?php
  2. drupal_add_js("(function ($) {
  3.  $('#imageID').click(function() {
  4.    $('#ytapiplayer2').show();
  5.    $('#imageID').hide();
  6.  });
  7. })(jQuery);", 'inline', 'footer');
  8. ?>

js

  1. (function ($) {
  2.   $('#imageID').click(function() {
  3.     $('#ytapiplayer2').show();
  4.     $('#imageID').hide();
  5.   });
  6. })(jQuery);

Fix for Code

  1. /**
  2.  * Transforms selected form elements into slider widgets.
  3.  */
  4. Drupal.behaviors.mööööpSlider = function(context) {
  5.   var sliderElements = {
  6.     'difficulty': 'recipes-difficulty-value',
  7.     '

theme_primary_links

  1. <?php
  2. function my_primary_links($links, $attributes = array('class' => 'links primary')) {
  3.   global $language;
  4.   $output = '';
  5.  
  6.   if (count($links) > 0) {
  7.     $output = '<ul' .

Fix for Fix for Fix for Fix for Fix for Code

  1. <?php
  2. $title = t('All about topic !topic', array('!topic' => $term->name))
  3. $output .= '<div class="more-link more-link-topics">';
  4. $output .= l($title, 'taxonomy/term/' .
Syndicate content