drupal6

D6 Code

  1. function phptemplate_preprocess_page(&$vars) {
  2.   if (6">module_exists('path')) {
  3.    $alias = 6">drupal_get_path_alias(str_replace('/edit','',$_GET['q']));
  4.     if ($alias != $_GET['q']) {

Overriding template suggestions

  1. function phptemplate_preprocess_page(&$vars) {
  2.   // Content switching
  3.   $vars['template_files'][] = 'page-'.$node->type;
  4. }

Code

  1. In the header of my view (using php input format):
  2.  
  3. <?php
  4. $view=views_get_current_view();
  5. print_r($view->args);
  6. print "\n";
  7. print "name: ".$view->name;
  8. print "\n";

Drupal 6 menu system

  1. function image_fupload_menu() {
  2.   ................
  3.   ................
  4.  
  5.   $items['node/add/%image_node_type/list_images'] = array(
  6.     'title' => 'Edit Captions',

AHAH FAPI Callback Helper

  1. // Example usage. This is an AHAH callback function.
  2. function mymodule_ahah() {
  3.   // Update the form and render only the wrapper inside the "Refund Settings"
  4.   // fieldset.

AHAH helper - not yet working

  1. <?php
  2.  
  3. function &ahah_helper_get_form_element($form, $parents) {
  4.   // Allow $parents to be either an array of the element's parents or the name
  5.   // of an element.

maybe a problem with accents on drupal 6 for theme-settings.php

  1. /**
  2. * template.php
  3. */
  4. <?php
  5. /*
  6. * Initialize theme settings
  7. */
  8. if (is_null(theme_get_setting('who_we_are_title'))) {
  9.   global $theme_key;
  10.   /*

Fix for maybe a problem with accents on drupal 6 for theme-settings.php

  1. /**
  2. * template.php
  3. */
  4. <?php
  5. /*
  6. * Initialize theme settings
  7. */
  8. if (is_null(theme_get_setting('who_we_are_title'))) {
  9.   global $theme_key;
  10.   /*

Fix for maybe a problem with accents on drupal 6 for theme-settings.php

  1. /**
  2. * template.php
  3. */
  4. <?php
  5. /*
  6. * Initialize theme settings
  7. */
  8. if (is_null(theme_get_setting('quem_somos_title'))) {
  9.   global $theme_key;
  10.   /*

maybe a problem with accents on drupal 6 for theme-settings.php

  1. /**
  2. * template.php
  3. */
  4. <?php
  5. /*
  6. * Initialize theme settings
  7. */
  8. if (is_null(theme_get_setting('quem_somos_title'))) {
  9.   global $theme_key;
  10.   /*
Syndicate content