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

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.

主站蜘蛛池模板: 孙吴县| 钦州市| 加查县| 阆中市| 英吉沙县| 安多县| 黎平县| 铜梁县| 宝丰县| 射阳县| 通城县| 洪泽县| 长乐市| 常宁市| 长治市| 射阳县| 喜德县| 灵台县| 玛纳斯县| 宜兴市| 会昌县| 博罗县| 和林格尔县| 五大连池市| 嘉黎县| 新田县| 二连浩特市| 益阳市| 霸州市| 邹城市| 上饶市| 土默特左旗| 灵武市| 宝丰县| 调兵山市| 岳阳市| 濉溪县| 惠安县| 威宁| 云浮市| 连州市|