官术网_书友最值得收藏!

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."

Note

Important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 新疆| 广灵县| 鲁甸县| 绥棱县| 敖汉旗| 景洪市| 通许县| 历史| 茂名市| 江山市| 葵青区| 高密市| 阿瓦提县| 讷河市| 平果县| 庆城县| 灯塔市| 沅陵县| 苗栗市| 万荣县| 阳新县| 西吉县| 苏尼特右旗| 民乐县| 集安市| 云霄县| 定陶县| 阆中市| 余江县| 宜宾市| 古浪县| 夹江县| 洱源县| 临城县| 鸡东县| 汾阳市| 松江区| 呼伦贝尔市| 文水县| 乌拉特后旗| 平山县|