Drupal for Education and E/Learning
上QQ阅读APP看书,第一时间看更新

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.

In this text, the URLs of specific administrative screens are formatted as follows: if your site is located at http://example.edu, the URL of your main administrative screen will be at http://example.edu/admin. In this text, we will just list that URL path as admin—it is assumed that you are adding the URL of your site onto the paths given in this book.

A block of code will be set as follows:

<?php   
  global $user;   
  $instructor_role_id = 3;   
  if ($user->uid == 0) {     
    print l(t('You must log in to view this page'), 'user');     
    return;   
}   

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

      $loaded_user = user_load(array('uid' => $u->uid));
      $links[] = l($loaded_user->name, 'bygroup/'. $loaded_user->uid .'/'. $gid) . $separator . $loaded_user->profile_last_name;

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 Next button moves you to the next screen". Also, in many places, it is necessary to describe the location of a specific menu item. On these occasions, you will be presented with different methods to get where you need to go. For example, to get to the page to administer all content posted on your site, you need to click the Administer | Content management | Content menu link, or navigate to admin/content/node.

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.