_blogapi_blogid

Versions
4.6 – 5
_blogapi_blogid($id)

▾ 3 functions call _blogapi_blogid()

blogapi_blogger_get_recent_posts in modules/blogapi.module
Blogging API callback. Returns the latest few postings in a user's blog. $bodies TRUE <a href="http://movabletype.org/docs/mtmanual_programmatic.html#item_mt%2EgetRecentPostTitles"> returns a bandwidth-friendly list</a>.
blogapi_blogger_new_post in modules/blogapi.module
Blogging API callback. Inserts a new blog post as a node.
blogapi_metaweblog_get_category_list in modules/blogapi.module
Blogging API callback. Returns a list of the taxonomy terms that can be associated with a blog node.

Code

modules/blogapi.module, line 705

<?php
function _blogapi_blogid($id) {
  if (is_numeric($id)) {
    return 'blog';
  }
  else {
    return $id;
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.