tailieunhanh - Drupal 7 First Look phần 9

Kiểu trả về mặc định khác nhau tùy thuộc vào báo cáo, truy vấn được thực thi. Các tùy chọn bao gồm:tất cả các kết quả, do đó bạn có thể lặp lại và xử lý tất cả các kết quả. Đây là mặc định cho các truy vấn và báo cáo chọn. bị ảnh hưởng bởi truy vấn. Đây là mặc định cho báo cáo cập nhật và xóa. | Chapter 7 Download from Wow eBook New hooks Drupal 7 also introduces several new hooks that can be implemented by modules. Let s look at the signature of each new hook with a brief discussion of the use of that hook. hook_admin_paths hook_admin_paths This hook defines which paths defined by a module should be considered as administrative paths. A theme may display administrative paths differently. For example administrative paths can be displayed in the overlay or with a different theme. You should return an associative array with the path name as the key and the value TRUE for any path you want to be administrative. Paths can include wild cards. hook_admin_paths_alter hook_admin_paths_alter paths This hook allows you to modify which paths are defined as administrative paths for paths that are defined by other modules. An associative array of all existing paths is passed to this method and you can alter it as needed. hook_archiver_info hook_archiver_info This hook allows you to define classes that can combine and extract multiple files into a single file that can optionally be compressed. For example ZIP files and tar. gz files are both archive files that could be created with an archiver. To create an archiver class you must implement the Archiverinterface which is defined in the file in the includes directory. The return value for this hook is an associative array with the following keys class the class name of a class which implements the Archiverinterface extensions an array of file extensions that the class can handle weight allows you to influence which archiver should be used if more than one archiver can handle a specific extension 209 Drupal 7 for Developers hook_css_alter hook_css_alter css This hook allows you to modify which css files are rendered to the page. The css variable is an array of all files and inline CSS which will be output keyed based on the filename of the file to be included. Inline CSS will not have a key .

TỪ KHÓA LIÊN QUAN