You are here

function blogapi_get_node_types in Blog API 7.2

Helper function. Get BlogAPI node types.

2 calls to blogapi_get_node_types()
blogapi_blogger_get_users_blogs in modules/blogapi_blogger/blogapi_blogger.module
Service callback for blogger.getUsersBlogs
blogapi_validate_content_type in ./blogapi.module
Validate that a content type is configured to work with BlogAPI

File

./blogapi.module, line 396
Enable users to post using applications that support BlogAPIs.

Code

function blogapi_get_node_types() {
  $node_types = array_map('check_plain', node_type_get_names());
  $defaults = !empty($node_types['article']) ? array(
    'article' => 'article',
  ) : array();
  $node_types = array_filter(variable_get('blogapi_node_types', $defaults));
  return $node_types;
}