You are here

function _classified_page_user_ads in Classified Ads 6.3

Same name and namespace in other branches
  1. 7.3 classified.module \_classified_page_user_ads()

Page callback for user/<uid>/classified

Parameters

object $account: A user account for which to list authored ads.

Return value

string The ads list.

1 string reference to '_classified_page_user_ads'
classified_menu in ./classified.module
Implements hook_menu().

File

./classified.module, line 593
A pure D6 classified ads module inspired by the ed_classified module.

Code

function _classified_page_user_ads($account) {
  global $user;
  $min_status = $account->uid == $user->uid || user_access('administer nodes') ? 0 : 1;
  $sq = _classified_get_ads_query($min_status);
  $q = pager_query($sq, 10, 0, NULL, $account->uid, $min_status);
  $ret = _classified_list_nodes($q);
  $ret .= theme('pager');
  return $ret;
}