drupal 7 module development

420 2.4K 0
drupal  7  module  development

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... 370 370 370 372 372 373 374 Thinking securely Filtering versus escaping Filtering Escaping HTML SQL injection Node access control Handling insecure code Staying up to date Summary 375 376 377 377 378 378 379 380 381 [ viii ] Preface Drupal is an award-winning open-source Content Management System It's a modular system, with an elegant hook-based architecture, and great code Modules are plugins for Drupal. .. Adding new artwork Validation callback Submit callback Saving your artwork Handling revisions 138 139 141 142 144 146 146 1 47 149 151 151 152 152 152 156 156 161 163 163 165 1 67 170 171 172 175 Viewing artworks Editing an artwork Deleting an artwork Summary 176 177 178 182 Chapter 7: Creating New Fields Our goal: a "dimensions" field How Field API works Creating our new field type Declaring the field... access Table of Contents Preface Chapter 1: Developing for Drupal 7 Introducing Drupal (for developers) Technologies that drive Drupal PHP Databases and MySQL HTML, CSS, and JavaScript Other technologies The web server The Operating System Drupal architecture Drupal core libraries Drupal hooks Drupal core modules The database The theme system Drupal' s major subsystems Themes Menus Nodes Files Users Comments... subsystems 1 7 7 8 9 9 10 10 10 11 11 13 13 14 15 16 16 16 17 17 18 18 18 19 19 19 20 20 20 Table of Contents Tools for developing Drupal code Version control with Git and CVS 20 21 The book's code and Git 21 The API site and coding standards Developer-oriented modules 22 22 The developer module Drush (the Drupal shell) Coder 22 23 23 Summary Chapter 2: Creating Your First Module Our goal: a module with... Modifying the behavior of other modules Using hook_node_grants_alter() Using hook_node_access_records_alter() Testing and debugging your module Using Devel Node Access 254 254 256 259 260 261 263 264 266 266 269 271 273 274 275 279 282 282 Summary 285 Using hook_node_access_explain() Using the Devel Node Access by user block Chapter 10: JavaScript in Drupal JavaScript inside Drupal Adding JavaScript Adding... architecture, and great code Modules are plugins for Drupal that extend, build or enhance Drupal core functionality In Drupal 7 Module development book, six professional Drupal developers use a practical, example-based approach to introduce PHP developers to the powerful new Drupal 7 tools, APIs, and strategies for writing custom Drupal code These tools not only make management and maintenance of websites much... Introduction to Drupal Module Development gives a introduction to the scope of Drupal as a web-based Content Management System It dwells on basic aspects such as the technologies that drive Drupal and the architectural layout of Drupal A brief idea of the components (subsystems) of Drupal and the tools that may be used to develop it, completes the basic picture of Drupal Chapter 2, A First Module, gets... module with a block Creating a new module Module names Where does our module go? Creating the module directory Writing the info file Creating a module file Source code standards Doxygen-style doc blocks The help hook The t() function and translations 23 25 25 26 27 27 29 29 33 35 36 38 39 Working with the Block API The block info hook The block view hook The first module in action Writing automated... and watermark modules Files in Drupal File API Stream wrappers Creating a stream wrapper Images in Drupal Image API Image Styles Creating image effects Creating image styles from a module Summary Introducing installation profiles Drupal distributions Setting up a distribution Standard and minimal profiles Creating a profile directory Profile modules and themes Creating profiles Enabling modules The install... feel of the site can easily be changed Developing for Drupal 7 As fantastic as these features are, they will certainly not satisfy the needs of all users To that end, Drupal' s capabilities can be easily extended with modules, themes, and installation profiles Take a look at Drupal' s main website, http:/ /drupal. org, and you will find thousands of modules that provide new features, and thousands of themes . alt="" Drupal 7 Module Development Create your own Drupal 7 modules from scratch Matt Butcher Greg Dunlap Matt Farina Larry Garfield Ken Rickard John Albin Wilkins BIRMINGHAM - MUMBAI Drupal 7 Module. artwork 1 67 Validation callback 170 Submit callback 171 Saving your artwork 172 Handling revisions 175 Viewing artworks 176 Editing an artwork 177 Deleting an artwork 178 Summary 182 Chapter 7: Creating. First Module 25 Our goal: a module with a block 25 Creating a new module 26 Module names 27 Where does our module go? 27 Creating the module directory 29 Writing the .info file 29 Creating a module

Ngày đăng: 05/05/2014, 13:31

Từ khóa liên quan

Mục lục

  • Cover

  • Copyright

  • Credits

  • Foreword

  • About the Authors

  • About the Reviewers

  • Table of Contents

  • Preface

  • Chapter 1: Developing for Drupal 7

    • Introducing Drupal (for developers)

      • Technologies that drive Drupal

        • PHP

        • Databases and MySQL

        • HTML, CSS, and JavaScript

        • Other technologies

        • The web server

        • The Operating System

        • Drupal architecture

          • Drupal core libraries

          • Drupal hooks

          • Drupal core modules

          • The database

          • The theme system

          • Drupal's major subsystems

            • Themes

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan