18.10.2016 Views

Drupal 7 Module Development

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TDD 26<br />

technologies, <strong>Drupal</strong><br />

about 8<br />

CSS 10<br />

database API 10<br />

databases 9<br />

HTML 10<br />

JavaScript 10<br />

MySQL 9<br />

operating system 11<br />

PHP 9<br />

PHP Data Objects library 9<br />

PostgreSQL 9<br />

RSS (Really Simple Syndication) 10<br />

web server 10<br />

XML (eXtensible Markup Language) 10<br />

XML-RPC 10<br />

template_ prefix<br />

preprocess function, defining 109-113<br />

template_preprocess() function 75<br />

template files<br />

about 70-72, 114<br />

creating 115, 116<br />

preprocess functions 72<br />

temporary file storage 315<br />

test, creating<br />

about 50<br />

test case, writing 51<br />

test case<br />

patterns 51, 52<br />

setting up 54<br />

writing 51<br />

TestDriven<strong>Development</strong>. See TDD<br />

test method<br />

writing 55-58<br />

text<br />

tokens, implementing in 147, 148<br />

text filters<br />

about 358<br />

example 358<br />

theme 16<br />

theme() function 47<br />

theme_item_list() function 67, 101<br />

theme_table() function 204<br />

theme_username function 69<br />

theme engines 66<br />

theme functions<br />

about 66, 67<br />

operations 82, 83<br />

preprocess functions 68, 69<br />

theme_item_list() function 67<br />

theme overrides 69<br />

theme hooks<br />

about 63<br />

file_link 92<br />

html_tag 92<br />

image 92<br />

image_style 92<br />

item_list 93<br />

links 93<br />

more_link 93<br />

pager 93<br />

progress_bar 93<br />

registering 107<br />

table 93<br />

user_list 93<br />

user_picture 93<br />

username 93<br />

theme hook suggestions 83, 84<br />

theme overrides<br />

about 69, 70<br />

bartik_preprocess_username() function 70<br />

theme registry<br />

about 85<br />

hook_theme 86-88<br />

hook_theme_registry_alter 88, 89<br />

variable default values 85, 86<br />

theme system 12, 16<br />

theming 62<br />

token<br />

about 146<br />

implementing, in text 147, 148<br />

token_replace() function 146<br />

transaction 372<br />

Twitpic 320<br />

twitpic_image_munge() function 327<br />

Twitpic module 313<br />

Twitpic website<br />

URL 313<br />

[ 393 ]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!