|
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. | |
| planet_cron | ( | ) |
Implementation of hook_cron - Perform periodic actions.
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 }

| planet_load | ( | $ | node | ) |
Implementation of hook_load - Load node-type-specific information.
| $node | The node being loaded. |
00968 { 00969 $additions = db_fetch_object(db_query('SELECT link, guid FROM {planet_items} WHERE nid = %d', $node->nid)); 00970 return $additions; 00971 }

| 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 }

1.5.8