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.

form handling 229<br />

forms<br />

access checks, running on 233, 234<br />

AJAX, adding 305, 306<br />

AJAX, using 235<br />

elements, disabling 230<br />

secure data, passing 231<br />

securing, in <strong>Drupal</strong> 229<br />

submitting 136, 137<br />

Forms API<br />

about 19, 229<br />

working 229<br />

fread() function 319<br />

functional tests 49<br />

G<br />

getExternalURL() function 323<br />

getInfo() method 53<br />

H<br />

helper functions, <strong>Drupal</strong><br />

behaviors 303, 304<br />

themeable presentation 301, 302<br />

translatable strings 302, 303<br />

hook<br />

implementing 14<br />

hook_block_info() 43, 44<br />

hook_block_view() 43-47<br />

hook_css_alter()<br />

CSS, altering 300<br />

example 300<br />

hook_element_info 80<br />

hook_enable()<br />

about 227<br />

role, creating 228<br />

using 227<br />

hook_entity_info() 156<br />

hook_field_extra_fields() 206<br />

hook_field_info_alter() hook, properties<br />

default_formatter 186<br />

default_widget 186<br />

description 186<br />

instance_settings 186<br />

label 186<br />

settings 186<br />

hook_form_alter() 233<br />

hook_help()<br />

about 38<br />

implementing 38, 39, 120<br />

hook_image_default_styles() 339, 340<br />

hook_image_effect_info()<br />

implementing 334<br />

hook_init() 14<br />

hook_install_tasks()<br />

about 348<br />

properties 348<br />

hook_install_tasks_alter() 348<br />

hook_library()<br />

about 295<br />

information, altering 297<br />

Library API, defining 296<br />

hook_library_alter() 297<br />

hook_mail()<br />

implementing 144, 145<br />

hook_menu()<br />

form page, defining 305<br />

page callback, defining 121-124<br />

hook_menu() implementation<br />

creating 327<br />

hook_node_access()<br />

about 254, 260<br />

access control modules 259<br />

comparing, with {node_access} table 250-<br />

253<br />

implementing, on view operation 260<br />

invoking 247<br />

node access module, writing 260<br />

parameters 254<br />

sample access control module 254-259<br />

view operations 259<br />

hook_node_access(), parameters<br />

$account 254<br />

$node 254<br />

$op 254 254<br />

hook_node_access_explain() 283, 284<br />

hook_node_access_records() 266-268<br />

hook_node_access_records_alter()<br />

about 279<br />

using 280, 281<br />

hook_node_grants()<br />

about 269, 270<br />

using 249<br />

[ 388 ]

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

Saved successfully!

Ooh no, something went wrong!