Sau đó là một loạt các thẻ . Hãy suy nghĩ này như là cơ thể HTML. Điều này là các dữ liệu đó sẽ được trả lại bên trong các ứng dụng Flex. Bây giờ, trở lại với phong cách trang. Dưới đây là các mã cho rằng Tiếp theo, bạn sẽ thấy một trang danh sách các tùy chọn mà bạn có thể thiết lập cho các lĩnh vực mới | CHAPTER 7 DRUPAL BLOCKS Figure 7-10. Your first custom block Now let s take your block to the next level by adding a relatively simple block of PHP code that displays the current date making your block dynamic. To change the block click on the Structure link in the administrator s menu at the top of the page. On the Structure page click on the Block s link. On the blocks page scroll down until you find the block you just created and click on the configure link. Clicking on the link opens the Block edit form where we ll enter the PHP code that displays the current date. Update the Block body by entering the following block of PHP code immediately following the Hello World text that you entered previously. php echo Today is echo date m d Y After entering the code change the Text format select list from Filtered HTML to PHP code directing Drupal to interpret the PHP code you entered and click the Save block button. Return to the homepage to see the impact of your change. Summary Blocks are powerful mechanisms for creating and displaying dynamic content and interactive features on your site. In this chapter we discovered blocks that ship with Drupal 7 how to install a module that provides a weather forecast for your local area and how to create a custom block from scratch. We will continue to expand on the use of blocks as I cover Views Panels and installing additional modules in upcoming chapters. 81 C H A P T E R 8 Drupal Modules Drupal is an amazing product in its off-the-shelf state. The features and functionality provided in Drupal 7 core is often more than adequate to meet the needs of many who build their websites with Drupal. But there are times when you need a feature that isn t possible with Drupal core alone and in those cases you need look no further than the thousands of contributed modules that have been written to address just about anything you could think of doing on a Drupal based website. In this chapter you will learn how to find install enable and