- 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."
- AutoCAD 2010中文版基礎(chǔ)教程(第2版)
- Scratch 1.4: Beginner’s Guide
- 數(shù)字孿生體:第四次工業(yè)革命的通用目的技術(shù)
- 微信小程序開(kāi)發(fā)入門(mén)與實(shí)踐
- 計(jì)算機(jī)·手機(jī)生活應(yīng)用
- 中文版AutoCAD 2022基礎(chǔ)教程
- ADempiere 3.6 Cookbook
- PS App UI設(shè)計(jì)從零開(kāi)始學(xué)
- 陌上花開(kāi):古風(fēng)CG插畫(huà)繪制技法精解(花卉篇)
- After Effects 2022從新手到高手
- 新編中文版3ds Max 2016入門(mén)與提高
- 神奇的中文版Photoshop CC 2017入門(mén)書(shū)
- 中文版AutoCAD自學(xué)經(jīng)典
- Photoshop CS6圖像處理立體化教程
- Illustrator 2024實(shí)用教程