~/.bashrc on an ENGR Linux machine or
to your ~/.profile on shell.onid.orst.edu.
export PS1="\h \w \!% "Then issue Unix command
source ~/.bashrc or
open a new terminal.
.bash_profile and .bashrc,
you may copy these files from ~minoura on an ENGR machine or
~minourat on shell.onid.orst.edu
and change minoura or minourat to your
login name.
cd ~/public_html/ms_apps/fishing_v2 cvs up -d cd ~/public_html/drupal-6.2/sites/all/modules/custom cvs up -dNote that the files under
drupal-6.2/sites/all/modules/custom
were originally checked out from drupal_6.x_custom_modules.
In particular we want to complete the following tasks.
node_example and announcement do.
nid
of table node.
You do not need to consider attributes
modified_date, modified_by,
and row_owner_id.
hook_node_info()
-- provides information on the node type defined by the module.
hook_form() -- defines a form configuration.
hook_validate() -- checks form parameters submitted.
hook_insert(), hook_update(),
hook_delete(), and hook_load()
-- performs operations on additional tables other than
table node.
hook_theme()
-- provides information on the theme functions and templates defined.
theme_xxx or xxx.tpl.php
-- each theme function or template with theme ID xxx.
template_preprocess_xxx()
-- prepares variables used by the template with theme ID xxx.
announcement.install and announcement.module
in module custom/announcement.
ms_apps/web_gen/tmpl/config.tmpl
into form_gen.tmpl
so that it can generate the definition of a form,
i.e., hook_form(), for a database table.
form_gen.tmpl are completed,
each student can work on one major table and the tables
associated with it in the fishing_v2 database.
SQL statements for creating tables in the fishing_v2database
can be found in file create_fishing_tables.sql
in ~/public_html/ms_apps/fishing_v2/sql_queries/.
angler
water_body
d_fish_species
fishing_spot
catch_record
fishing_season
set_params.
This module accepts parameters from a form displayed as a block
and sets those parameters in global variables.
The parameters will be used by queries.
For example, if the fishing zone is set to "Willamette",
a search for fishing spots will be restricted to the Willamette zone.
ODFW Zone, Waterbody Type, Waterbody,
Fish Type, Fish Species,
Fishing Season, and Fishing Method,
ODFW Zone and/or a Waterbody Type
are selected only the waterbodies related to the selected
ODFW Zone and/or Waterbody Type are available
as options for Waterbody.
Fish Type is selected
only the fish species of the selected Fish Type
are availabe as options for Fish Species.
where clause
of an SQL query to restrict the range of the query.
~minoura/public_html/ms_apps/fishing_v2/forms/dropdown_menu2
to a Drupal module,
or you may locate a Drupal module that implements a horizontal
dropdown menu and modify it.
set_params.
For example, if the fishing zone is set to "Willamette",
the menu layer for selecting a fishing zone must be skipped.
This can be done by modifying the array dynamically defined in file
dropdown_menu.config.