- Learning Drupal 6 Module Development
- Matt Butcher
- 219字
- 2021-07-02 12:00:52
Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "One thing that should stand out is the use of a require_once
directive at the very beginning of the file."
A block of code will be set as follows:
function _philquotes_get_quote() { $sql = "SELECT nid FROM {node} ". "WHERE status=1 AND type='quote' ORDER BY RAND() LIMIT 1"; $res = db_query($sql); $item = db_fetch_object($res); // Do something with the $item. }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:
function philquotes_block($op = 'list', $delta = 0, $edit = array()) {
switch ($op) {
case 'list':
$blocks[0]['info'] = t('Philosophical Quotes');
return $blocks;
case 'view': $item = _philquotes_get_quote(); if(!empty($item)) {
New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "Clicking the Add content type tab will load the form used to create our new content type."
- UG NX10.0從新手到高手
- PS職場達人煉成記:人人都能學會的Photoshop辦公設(shè)計技巧
- Excel 2013使用詳解(修訂版)
- Drools規(guī)則引擎技術(shù)指南
- Photoshop CS6完全自學案例教程(微課版)
- Illustrator平面設(shè)計立體化教程:Illustrator 2021(微課版)
- 二維計算機繪圖教程:二維CAD工程師取證全程指導(dǎo)
- Liferay Portal Systems Development
- Photoshop 2024從入門到精通
- 巧學巧用Flash CS6制作動畫
- ASP.NET Core 3從入門到實戰(zhàn)
- 短視頻剪輯基礎(chǔ)與實戰(zhàn)應(yīng)用(剪映電腦版)
- 虛擬現(xiàn)實:沉浸于VR夢境
- 計算機輔助翻譯基礎(chǔ)與實訓
- Origin 2022科學繪圖與數(shù)據(jù)分析