Drupal 7 Module Development phần 2 pptx

Drupal 7 Module Development phần 2 pptx

Drupal 7 Module Development phần 2 pptx

... http:/ /drupal. org/project/devel Creating Your First Module [ 32 ] The next directive is the core directive: core = 7. x. This simply declares which main-line version of Drupal is required by the module. All Drupal 7 modules will have ... information. Chapter 2 [ 27 ] Module names It goes without saying that building a new module requires naming the module. However, the...

Ngày tải lên: 14/08/2014, 11:20

41 399 0
Drupal 7 Module Development phần 1 pdf

Drupal 7 Module Development phần 1 pdf

... shell) 23 Coder 23 Summary 23 Chapter 2: Creating Your 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 ... developing Drupal code 20 Version control with Git and CVS 21 The book's code and Git 21 The API site and coding standards 22 Developer-oriented modules...

Ngày tải lên: 14/08/2014, 11:20

42 397 0
Drupal 7 Module Development phần 3 potx

Drupal 7 Module Development phần 3 potx

... item_list theme hook. Drupal s Theme Layer [ 76 ] A similar problem troubled module developers in Drupal 6. It was impossible to call drupal_ add_css() or drupal_ add_js() in a MODULE_ preprocess_page() ... blog module, and re-purpose it for a single blog that uses Drupal& apos;s default article content type. If you try out this chapter's code, you should disable Drupal 7...

Ngày tải lên: 14/08/2014, 11:20

41 450 0
Drupal 7 Module Development phần 4 doc

Drupal 7 Module Development phần 4 doc

... chapter. In Drupal 6, drupal_ get_form() returned a fully rendered HTML form. This has been changed in Drupal 7 in order to allow more exibility in theming and easier form manipulation. drupal_ get_form() ... it into Drupal& apos;s administrative interface and applies the admin theme dened by the site settings. Module- specic settings should always be present under admin/conf...

Ngày tải lên: 14/08/2014, 11:20

41 350 0
Drupal 7 Module Development phần 5 doc

Drupal 7 Module Development phần 5 doc

... replacement. In Chapter 7, Creating New Fields, we will begin examining Drupal 7& apos;s new Field API, the core implementation of what was formerly the CCK module. Chapter 6 [ 171 ] Submit callback The ... of Drupal, tokens were implemented using the contributed module named, not surprisingly, Token. This functionality proved to be so popular and widely used that it was included...

Ngày tải lên: 14/08/2014, 11:20

41 586 0
Drupal 7 Module Development phần 6 potx

Drupal 7 Module Development phần 6 potx

... that can be solved very easily. • • • Drupal Permissions and Security [ 22 4 ] Responding when access is denied In a signicant change from earlier Drupal, the drupal_ access_denied() function should ... search'), ), ); } The module declares three separate permissions in a manner typical to Drupal modules. The rst permission is for administrative conguration of the modul...

Ngày tải lên: 14/08/2014, 11:20

41 256 0
Drupal 7 Module Development phần 7 pdf

Drupal 7 Module Development phần 7 pdf

... name="form_token" id="edit-aggregator-admin- remove-feed-form-token" value="48b 029 4050ef62b7d5 577 8cf1992f 326 " /> <input type="hidden" name="form_id" id="edit-aggregator-admin- remove-feed" ... access rules. In Drupal 7, any module may declare node access rules. This is a change from the earlier versions, and it pro...

Ngày tải lên: 14/08/2014, 11:20

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

Drupal 7 Module Development phần 8 doc

... exception handling, in Drupal 7 we can write a simple extension module that will modify the behavior of the parent module. • • Chapter 10 [ 301 ] Drupal specific JavaScript Within Drupal there are ... Access The Devel Node Access module is part of the Devel module suite (http:/ /drupal. org/project/devel ). The module is maintained by salvis (http:/ /drupal. org/ user/ 829...

Ngày tải lên: 14/08/2014, 11:20

41 369 0
Drupal 7 Module Development phần 9 docx

Drupal 7 Module Development phần 9 docx

... effect will be available for use in Image Styles, the Drupal 7 implementation of the Imagecache module. Files in Drupal When you installed Drupal for the rst time, you probably got the following ... file_get_contents('http:/ /drupal. org/files/issues/druplicon_ 2. png'); $file = file_save_data($image, 'public://druplicon.png',FILE_EXISTS_ REPLACE); Chapter 12...

Ngày tải lên: 14/08/2014, 11:20

41 249 0
Drupal 7 Module Development phần 10 pps

Drupal 7 Module Development phần 10 pps

... 394 ] U unit test 49 update queries 370 use-ajax class 3 07 user_access() function about 21 2, 2 17, 22 1, 24 2 example 22 2 permissions, asserting 21 2, 21 3 using 23 0 user_list, theme hook 93 user_picture, ... about 124 , 2 17 module permissions, dening 21 8, 21 9 need for 2 17 using 21 8 writing 21 9 hook_query_alter() 26 2, 26 3 hook_stream_wrappers() 320 , 324...

Ngày tải lên: 14/08/2014, 11:20

50 244 0
w