Coda Clips

Drupal 6 theme info

name = Theme Name
description = A description of your theme
screenshot = screenshot.png
core = 6.x
php = 5.2.0
engine = phptemplate
;base theme = basetheme
stylesheets[all][] = css/cssfilename.css
scripts[] = js/javascript.js
;regions[left] = Left sidebar
;regions[right] = Right sidebar
;regions[content] = Content
;regions[header] = Header
;regions[footer] = Footer
;features[] = logo
;features[] = name
;features[] = slogan
;features[] = mission
;features[] = node_user_picture
;features[] = comment_user_picture
;features[] = search
;features[] = favicon
;features[] = primary_links
;features[] = secondary_links

Added to by Aaron Ellison

Install Clip


Drupal: Submit Button Change Name

function TPL_webform_form_ID($form) {
  $form['submit']['#value'] = t('Send');    
  return drupal_render($form);
}

Added to by Steven Schulz

Install Clip


Drupal module info

; $Id$
name = 
description = "The description of this module"
; Required core version (Drupal 6+; no effect in Drupal 5)
core = 6.x
; Package name (see http://drupal.org/node/101009 for a list of names)
; package = 
; PHP version requirement (Drupal 6+)
; php = 5.2
; Module dependencies (Drupal 6+ style)
; dependencies[] = mymodule
; dependencies[] = theirmodule
; Module dependencies (Drupal 5 style)
; dependencies = mymodule theirmodule
; For further information about configuration options, see
; - http://drupal.org/node/101009 (Drupal 5)
; - http://drupal.org/node/231036 (Drupal 6)
; Clip taken from TextMate Drupal bundle

Added to by Davy Van Den Bremt

Install Clip


Drupal: watchdog

watchdog('type', 'message', null, 'WATCHDOG_NOTICE', 'link');

Added to by David Reed

Install Clip


Drupal: link

l('label', 'path', array('query' => 'destination=node'));

Added to by David Reed

Install Clip


Drupal: set message

drupal_set_message('message', 'status');

Added to by David Reed

Install Clip


 
Sponsored Links: