System Interaction
[All Implemented Hooks]

Various callbacks for reacting to drupal some system events. More...

Collaboration diagram for System Interaction:

Functions

 planet_cron ()
 Implementation of hook_cron - Perform periodic actions.
 planet_user ($type, &$edit, &$user)
 Implementation of hook_user() - React when operations are performed on user accounts.
 planet_load ($node)
 Implementation of hook_load - Load node-type-specific information.

Detailed Description

Various callbacks for reacting to drupal some system events.

Function Documentation

planet_cron (  ) 

Implementation of hook_cron - Perform periodic actions.

Returns:
none
DB @CRUD: planet_feeds[R]
00741                        {
00742   $result = db_query('SELECT fid FROM {planet_feeds} WHERE frozen = 0');
00743   while ($feed = db_fetch_object($result)) {
00744     $title = planet_refresh($feed->fid);
00745     watchdog('planet', 'Cron updated feed "'. $title .'".');
00746   }
00747 }

Here is the call graph for this function:

planet_load ( node  ) 

Implementation of hook_load - Load node-type-specific information.

Parameters:
$node The node being loaded.
Returns:
An object containing properties of the node being loaded.
DB @CRUD: planet_items[R]
00968                             {
00969   $additions = db_fetch_object(db_query('SELECT link, guid FROM {planet_items} WHERE nid = %d', $node->nid));
00970   return $additions;
00971 }

Here is the call graph for this function:

planet_user ( type,
&$  edit,
&$  user 
)

Implementation of hook_user() - React when operations are performed on user accounts.

DB @CRUD: planet_feeds[R]

00877                                             {
00878   if ($type == 'view' && user_access('edit own blog', $user)) {
00879     $items[] = array('title' => t('Blog'),
00880       'value' => /* TODO
00881    Please manually fix the parameters on the l() or url() function on the next line.
00882    Typically, this was not changed because of a function call inside an array call like
00883    array('title' => t('View user profile.')).*/
00884 l(t('view recent blog entries'), "planet/$user->uid", array('title' => t("Read %username's latest blog entries.", array('%username' => $user->name)))),
00885       'class' => 'blog',
00886     );
00887     return array(t('History') => $items);
00888   }
00889   if ($type == 'load') {
00890     $obj = db_fetch_object(db_query('SELECT link FROM {planet_feeds} WHERE uid = %d', $user->uid));
00891     $user->planet_feed = $obj->link;
00892   }
00893 }

Here is the call graph for this function:


Generated on Tue Mar 24 20:27:24 2009 for ubuntu-drupal by  doxygen 1.5.8