... trong tương lai. iv 1.6.2 Module Coder 16 Chương 2 - Xây dựng module cho Drupal 17 2.1 File .info và .module 17 2.1.1 File .info 17 2.1.2 File .module 19 2.2 Chú thích trong mã ... trong Drupal 30 2 .7 Form API 31 2 .7. 1 Quá trình thao tác với form 31 2 .7. 2 Một số thao tác cơ bản 34 2 .7. 2.1 Tạo form 34 2 .7. 2.2 Giao diện hoá form 35 2 .7. 2.3 Kiểm tra dữ liệu 35 2 .7. 2.4 ... .info, file .module được đặt tên theo quy tắc <modulename> .module , trong đó <modulename> là tên thư mục chứa module. Nội dung file .module bắt đầu bằng thẻ < ?php , sau đó...
... trình viên mã nguồn mở PHP – Module 1 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 47 Lập trình viên mã nguồn mở PHP – Module 1 Bn quyn ... trình viên mã nguồn mở PHP – Module 1 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 23 Lập trình viên mã nguồn mở PHP – Module 1 Bn quyn ... trình viên mã nguồn mở PHP – Module 1 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 32 Lập trình viên mã nguồn mở PHP – Module 1 Bn quyn...
... Trang 27 Lập trình viên mã nguồn mở PHP – Module 2 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 10 Lập trình viên mã nguồn mở PHP – Module ... trình viên mã nguồn mở PHP – Module 2 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 17 Lập trình viên mã nguồn mở PHP – Module 2 Bn quyn ... trình viên mã nguồn mở PHP – Module 2 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 49 Lập trình viên mã nguồn mở PHP – Module 2 Bn quyn...
... nhập dữ liệu 42 Bài 4 Kết hợp PHP & MySQL – Thư viện PDO 1 57 Bài 5 Kết hợp PHP & MySQL – Thư viện PDO 2 69 Bài 6 Hiển thị dữ liệu trên trang Web 80 Bài 7PHP Email & Secure Email ... trình viên mã nguồn mở PHP – Module 3 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 47 Lập trình viên mã nguồn mở PHP – Module 3 Bn quyn ... trình viên mã nguồn mở PHP – Module 3 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 49 Lập trình viên mã nguồn mở PHP – Module 3 Bn quyn...
... trình viên mã nguồn mở PHP – Module 4 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 29 Lập trình viên mã nguồn mở PHP – Module 4 Bn quyn ... trình viên mã nguồn mở PHP – Module 4 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 33 Lập trình viên mã nguồn mở PHP – Module 4 Bn quyn ... trình viên mã nguồn mở PHP – Module 4 Bn quyn â Trung Tõm Tin Hc - Đại Học Khoa Học Tự Nhiên | Xuất bản bởi ®Công GMC Trang 49 Lập trình viên mã nguồn mở PHP – Module 4 Bn quyn...
... 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 182Chapter 7: Creating ... First Module 25Our goal: a module with a block 25Creating a new module 26 Module names 27 Where does our module go? 27 Creating the module directory 29Writing the .info file 29Creating a module ... great code. Modules are plugins for Drupal that extend, build or enhance Drupal core functionality. In Drupal7Module development book, six professional Drupal developers use a practical,...
... 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 Drupal7 modules will have ... testTests should reside in their own le. Just as the module& apos;s main module code is in MODULENAME/MODULENAME .module, a test should be in MODULENAME/MODULENAME.test. The testing framework will automatically ... documented in the ofcial Drupal7 API documentation, and even includes an example module: http://api .drupal. org/api /drupal/ developer examples block_example .module/ 7. To keep our example simple,...
... chapter. In Drupal 6, drupal_ get_form() returned a fully rendered HTML form. This has been changed in Drupal7 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 dened by the site settings. Module- specic settings should always be present under admin/config. Drupal 7 offers ... the form elements dened by Drupal as well as the properties each one implements, visit:http://api .drupal. org/api /drupal/ developer topics forms_api_reference.html /7 '#type' => 'textfield',The...
... 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 callbackThe ... all pages. Fortunately PHP provides a way to load class denitions on demand, and Drupal makes it very easy to expose classes to PHP& apos;s autoloader. Chapter 6[ 179 ] 'access arguments' ... manipulation of the tables in Drupal& apos;s SQL database.First, let's create a new module called "artwork". Start with the artwork.info and artwork .module les, as we've seen...