function _ed_classified_displayname in Classified Ads 5.2
Same name and namespace in other branches
- 5 ed_classified_utils.inc \_ed_classified_displayname()
- 6.2 ed_classified_utils.inc \_ed_classified_displayname()
- 7.2 ed_classified_utils.inc \_ed_classified_displayname()
Helper gets content display name
3 calls to _ed_classified_displayname()
- 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 primary vocabulary for classified Repairs association with primary vocabulary if $detect is TRUE.
File
- ./
ed_classified_utils.inc, line 510 - 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() {
switch (reset(explode('.', DRUPAL_VERSION))) {
case 5:
case 6:
$name = node_get_types('name', 'ed_classified');
break;
case 7:
$name = node_type_get_name('ed_classified');
break;
}
if (isset($name)) {
return $name;
}
else {
return 'undefined';
}
}