|
发表于 2013-2-7 03:39:37
|
显示全部楼层
试试drupal 框架就能深刻体会hook的意义了 :)
Drupal's module system is based on the concept of "hooks". A hook is a PHP function that is named foo_bar(), where "foo" is the name of the module (whose filename is thus foo.module) and "bar" is the name of the hook. Each hook has a defined set of parameters and a specified result type. |
|