18.10.2016 Views

Drupal 7 Module Development

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

artwork types, managing 163-165<br />

new artwork, adding 167-170<br />

escaping<br />

about 377<br />

versus filtering 376<br />

explode() function 198<br />

F<br />

fclose() function 319<br />

feof() function 319<br />

Field API<br />

pluggable field storage 185<br />

working 184<br />

field code<br />

writing, reasons 183, 184<br />

field instance 184<br />

fields<br />

about 184<br />

declaring 185<br />

displaying, formatters used 199<br />

finding 206-210<br />

settings 188, 189<br />

structure, defining 186-188<br />

validating 189, 190<br />

fields() method 366<br />

fields system 19<br />

field structure<br />

defining 186-188<br />

field type<br />

about 184, 185<br />

creating 185<br />

file_copy() function 316<br />

FILE_EXISTS_ERROR constant 317<br />

FILE_EXISTS_RENAME constant 317<br />

FILE_EXISTS_REPLACE constant 317<br />

file_get_contents() function 317, 328<br />

file_link, theme hook 92<br />

file_move() function 316<br />

file_save_data() function 317, 329<br />

file_unmanaged_copy() function 316<br />

file_unmanaged_save_data() function 329<br />

file_uri_target() function 323<br />

File API 316<br />

File API functions<br />

about 316<br />

file_copy() 316<br />

file_get_contents() 317<br />

file_move() 316<br />

file_save_data() 317<br />

file_unmanaged_copy() 316<br />

Filefield module 316<br />

files[] directives 32<br />

files system 18<br />

file storage, <strong>Drupal</strong><br />

about 314<br />

private 314<br />

public 314<br />

temporary 314, 315<br />

filter_xss() function 377<br />

filter_xss_admin() function 377<br />

filtering<br />

about 376<br />

guidelines 377<br />

tools 377<br />

versus escaping 376<br />

filtering tools, <strong>Drupal</strong><br />

about 377<br />

check_markup() 377<br />

check_plain() 377<br />

filter_xss() 377<br />

filter_xss_admin() 377<br />

first_block_info() function 43<br />

fopen() function 319, 324<br />

foreach() loop 190<br />

Form API<br />

about 126<br />

drupal_get_form() function, using 127<br />

features 127<br />

fields, exposing with widgets 191<br />

system settings 138, 139<br />

Form API Full Reference<br />

URL 127<br />

formatter_view callback 201<br />

formatters<br />

about 184, 200<br />

complex formatters 201-204<br />

declaring 200<br />

fields, displaying 199<br />

single-value formatters 200<br />

form callback<br />

creating 305<br />

form callback function<br />

building 128-130<br />

[ 387 ]

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

Saved successfully!

Ooh no, something went wrong!