Drupal 7 Module Development phần 8 doc

41 369 0
Drupal 7 Module Development phần 8 doc

Đ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

Node Access Creating the role access module We begin with the standard module info file and a stub module file, as shown below: ; $Id$ name = Role Access description = Limit content access by user role core = 7.x files[] = role_access.module Save this as role_access.info inside a /sites/default/modules/role_access/ directory Then create a stub role_access.module file:

Ngày đăng: 14/08/2014, 11:20

Từ khóa liên quan

Mục lục

  • Chapter 9: Node Access

    • Creating the role access module

      • Using hook_node_access_records()

      • Using hook_node_grants()

      • Security considerations

      • Rebuilding the {node_access} table

      • 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

            • Using hook_node_access_explain()

            • Using the Devel Node Access by user block

            • Summary

            • Chapter 10: JavaScript in Drupal

              • JavaScript inside Drupal

              • Adding JavaScript

                • Adding JavaScript and CSS files to .info files

                • Using drupal_add_js()

                  • Adding JavaScript files

                  • Adding CSS files

                  • Passing variables from PHP to JavaScript

                  • Adding inline JavaScript

                  • Adding inline CSS

                  • Using the Library API

                    • Defining a library with hook_library

                    • Altering information in hook_library

                    • Using renderable arrays

                    • Altering JavaScript

                      • Altering CSS

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

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

Tài liệu liên quan