Skip to main content

Home/ Groups/ Drupal for Developers
Daniel Gregoire

drupal_hash_base64 | Drupal API - 0 views

  •  
    Drupal 7 function for generating url-safe sha-2 hashes.
Daniel Gregoire

The New Way To Generate Hashes In Drupal 7 | Engineered Web - 0 views

  •  
    Explanation of shift away from md5 to sha-2. See links to Drupal 7 api for (really easy) functions for generating url-safe sha-2 hashes.
Scott Blackburn

Remove 'Formatting guidelines' | drupal.org - 0 views

  • <?php/** Override filter.module's theme_filter_tips() function to disable tips display.*/function phptemplate_filter_tips($tips, $long = FALSE, $extra = '') {  return '';}function phptemplate_filter_tips_more_info () {  return '';}?>
Daniel Gregoire

node_example.module | Drupal API - 0 views

  •  
    Basic creation of programmatic custom content type
Daniel Gregoire

Batch API | drupal.org - 0 views

  •  
    Another Batch API example, handbook
Daniel Gregoire

Batch operations | Drupal API - 0 views

  •  
    Basic Batch API explanation
Daniel Gregoire

file_save_upload problem saving into destination folder | drupal.org - 0 views

  •  
    Simple, clean example of adding a file field and saving the file permanently.
Daniel Gregoire

drupal_execute | DrupalContrib - 0 views

  •  
    Actual documentation for drupal_execute
Scott Blackburn

Boost | drupal.org - 0 views

  •  
    For sites that need to completely cache certain pages for anonymous users.
Daniel Gregoire

Setup of /sites directory for multi-site | drupal.org - 0 views

  •  
    Good overview of directory structure for setting up Drupal multisite installations.
Daniel Gregoire

On RHEL and CentOS. | drupal.org - 0 views

  •  
    Script and explanation of getting Solr setup as a service in RHEL/CentOS.
Daniel Gregoire

Configuring settings using drupal_execute | drupal.org - 0 views

  •  
    Tagged for D5, but has D6 examples. Using drupal_execute (to be called drupal_form_submit in D7) to set site settings programmatically.
Scott Blackburn

Welcome to Code | Code - 0 views

  •  
    developmentseed's code repository
Scott Blackburn

Form Builder | drupal.org - 0 views

  •  
    Wow! This Lullabot contribution has serious potential for developers.
Daniel Gregoire

Restrict specific folders from public download (via .htaccess) | drupal.org - 0 views

  • If you set "public" as the download method, you can still protect some of your folders by settings in your .htaccess file, if you have mod_rewrite enabled. For instance, if your files live in sites/default/files, and you want to protect everything in sites/default/files/protected_download_dir, then you can add the following line to your central .htaccess file: RewriteRule ^sites\/default\/files\/(protected_download_dir\/.*)$ index.php?q=system/files/$1 The files in this folder (or, all files that match the regular expression) will not be served directly by apache, but by a full drupal request using the file_download() callback. The routing for system/files is defined in system_menu(). Access Checking for File Downloads Modules can do access checking on files downloaded through file_download(), by implementing hook_file_download(). For instance, the filefield module will do access checking for all files that you upload via filefield. It will only give access to people who are allowed to see the node and the field the file belongs to. In addition, you can look for modules that restrict file downloads based on the folder name or other criteria. Access Checking built-in with Filefield The filefield module has access checking built-in. To make use of this, please Make sure to use the latest dev version of filefield (for now). The current offical release (08/2009) has a bug in access checking. Have a look into filefield issue 516104. Configure the filefield you want to protect. Use the filefield path module, to define where the files for the filefield should be stored by default. Add a line to your .htaccess to protect this folder (see above). Use whatever modules to restrict node or field access.
Scott Blackburn

How to have a content type use a different page layout? | drupal.org - 0 views

  • function newsflash_preprocess_page(&$variables) {  if ($variables['node']->type == "static") {       $variables['template_files'][] = 'page-node-static';  } elseif ($variables['node']->type == "news") {        $variables['template_files'][] = 'page-node-news';  } elseif ($variables['node']->type == "codes") {        $variables['template_files'][] = 'page-node-codes';  } elseif ($variables['node']->type == "jokes") {        $variables['template_files'][] = 'page-node-jokes';  } }
Scott Blackburn

Ingredients for an Album/Track page | groups.drupal.org - 0 views

  •  
    A good start discussion about media players for Drupal
« First ‹ Previous 61 - 80 Next › Last »
Showing 20 items per page