You are here

function _ed_classified_displayname in Classified Ads 5

Same name and namespace in other branches
  1. 5.2 ed_classified_utils.inc \_ed_classified_displayname()
  2. 6.2 ed_classified_utils.inc \_ed_classified_displayname()
  3. 7.2 ed_classified_utils.inc \_ed_classified_displayname()

Helper gets content display name

4 calls to _ed_classified_displayname()
ed_classified_menu in ./ed_classified.module
Implementation of hook_menu().
ed_classified_page in ./ed_classified.module
Display a page of classified ads, as appropriate. Lifted from image_gallery module. Shameless.
_ed_classified_displayname_parms in ./ed_classified_utils.inc
_ed_classified_get_vid in ./ed_classified_utils.inc
Returns (and possibly creates) a new vocabulary for classified Lifted from image.module. TODO: Create some built-in terms for the created taxonomy: Miscellaneous, Cars, Pets, etc. (look at craigslist for inspiration)

File

./ed_classified_utils.inc, line 410
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_displayname() {
  $name = node_get_types('name', 'ed_classified');
  if (isset($name)) {
    return $name;
  }
  else {
    return 'undefined';
  }
}