You are here

function ed_classified_by_user in Classified Ads 5.2

Same name and namespace in other branches
  1. 5 ed_classified.module \ed_classified_by_user()
  2. 6.2 ed_classified.module \ed_classified_by_user()
  3. 7.2 ed_classified.module \ed_classified_by_user()

Get a list of classified ads for a given user

1 string reference to 'ed_classified_by_user'
ed_classified.module in ./ed_classified.module
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

File

./ed_classified.module, line 507
Simple text-based classified ads module. Michael Curry, Exodus Development, Inc. exodusdev@gmail.com for more information, please visit http://exodusdev.com/drupal/modules/classified.module Copyright (c) 2006, 2007 Exodus Development, Inc. All Rights…

Code

function ed_classified_by_user($user) {
  if (!$user) {

    // TODO this may be a bit abrupt, should we do softer error checking?
    drupal_not_found();
  }
  else {
    return ed_classified_admin_overview($user->uid);
  }
}