You are here

Drupal

How to get drush to work with Zend Community Edition on a Mac

Wiki Terms: 

http://drupal.org/node/571350#comment-4212112

My new mac and I love this list of workarounds. Thanks folks.

on my mac I did:

cd /tmp
ln -s /usr/local/zend/mysql/tmp/mysql.sock mysql.sock  (sometimes this link gets deleted and I have to recreate it -- I will try to protect it with unix permissions)

This lets you type mysql from the terminal and login to mysql that way.

Then I did:

Open Flash Charts 2 API

Wiki Terms: 

After looking to get open flash charts version 2 working for quite a while here are working directions.

http://drupal.org/node/423046#comment-3362858

Then in the node the directions on this page above were in fact wrong for testing the installation.

use this instead as I posted on this nodes page above.

Drush Commands

Wiki Terms: 

I'll add notes to this at a later time.

To download a module (masquerade in this case) using drush type in:

drush dl masquerade

Who says Drupal doesn't scale, Acquia provided 3 million pages an hour without problems

Wiki Terms: 

http://acquia.com/blog/acquia-hosting-customer-hits-700-pagessecond-or-w...

Here's a list of many famous Drupal sites: http://buytaert.net/tag/drupal-sites

list includes:

Nike
Yahoo
Intel
AT&T
Reuters
CNN
Mattel
Sony
MTV
NATO
Warner Brothers
NASA
Even the United States White House!

Print out a page without the template header, footer, blocks, etc.

Wiki Terms: 

http://www.drupalcoder.com/story/718-how-to-define-page-callbacks-that-d...

I haven't tried it yet, but this was a good post on Drupal Planet. I haven't needed to do this yet, but I know I will :)

Writing secure Drupal code link/reference

Wiki Terms: 

http://drupal.org/writing-secure-code

Just a link for a refresher on making sure you're writing secure code.

Theming blocks in drupal

Wiki Terms: 

Create a custom block for Drupal with a module using hook_block

Wiki Terms: 

<?php

// $Id$

/**
 * A module to create a basic block to be available from the drupal blocks menu page
 *
 *
 *
 * 
 */




function latest_block($op='list',$delta=array(),$edit=array())
{
      switch ($op)
     {

        case 'list':
                       $blocks[0]['info'] = t('Latest CTL Content');
                       return $blocks;
                       break;
         case 'view':
   

          $content = 'hello world';
          $blocks['subject'] = t('Latest CTL Content');
          $blocks['content'] = $content;
       return $blocks;
       break;
      }
}

Write your own sql to override the sql in your Drupal view

Wiki Terms: 

Here's a module that may do it http://drupal.org/project/views_modify_query, or use the code below:

Here is the module I wrote:
removedups_view.module is listed below

Pages

Theme by Danetsoft and Danang Probo Sayekti inspired by Maksimer