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.

ajax_command_alert command 309<br />

ajax_command_append command 309<br />

ajax_command_before command 310<br />

ajax_command_changed command 310<br />

ajax_command_css command 310<br />

ajax_command_data command 310<br />

ajax_command_html command 310<br />

ajax_command_prepend command 311<br />

ajax_command_remove command 311<br />

ajax_command_replace command 311<br />

ajax_command_restripe command 311<br />

ajax_command_settings command 312<br />

ajax_get_form() function 235<br />

AJAX callbacks<br />

handling 235<br />

using 236, 237<br />

API hooks 63<br />

artwork<br />

about 152, 183<br />

adding 165, 167<br />

creating 153, 154<br />

deleting 178-181<br />

editing 177, 178<br />

features 184<br />

saving 172-174<br />

viewing 176, 177<br />

working 208-210<br />

artwork, adding<br />

revisions, handling 175<br />

submit callback 171<br />

validation callback 170<br />

artwork.controller.inc module<br />

creating 162<br />

artwork_menu() hook 163<br />

artwork_page_view() function 177<br />

artwork_revision table<br />

calling 154, 155<br />

artwork_type_load() function 161<br />

artwork_types() function 160<br />

artwork_uri() function 158<br />

ArtworkController class 162<br />

artwork types<br />

managing 163-165<br />

automated testing, <strong>Drupal</strong><br />

about 49<br />

test, creating 50<br />

B<br />

behaviors<br />

about 303<br />

example 303<br />

Block API<br />

about 42<br />

hook_block_info() 43, 44<br />

hook_block_view() 45-47<br />

working with 43<br />

blocks<br />

configuring 355-357<br />

theming 98<br />

block subsystem<br />

about 25<br />

using, in modules 25<br />

bootstrapping 13<br />

bundle 152<br />

business logic<br />

versus presentation logic 62, 63<br />

bypass node access permission 263<br />

C<br />

caching 292<br />

Cascading Style Sheets. See CSS<br />

check_markup() function 377<br />

check_plain() function 41, 166, 377<br />

closures 32<br />

CMF 8<br />

CMS 8<br />

Coder module<br />

features 23<br />

coding conventions, <strong>Drupal</strong> 30<br />

command line<br />

installer, running from 360-362<br />

comment module 18<br />

complex formatters 201-204<br />

complex widget 194-198<br />

condition() method 370<br />

confirm_form() function 140, 141<br />

content<br />

handling 151<br />

Content Management Framework. See CMF<br />

Content Management System. See CMS<br />

controller 156<br />

[ 384 ]

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

Saved successfully!

Ooh no, something went wrong!