| 5 blogapi.module | _blogapi_get_node_types() |
| 6 blogapi.module | _blogapi_get_node_types() |
1 call to _blogapi_get_node_types()
File
- modules/
blogapi.module, line 714 - Enable users to post using applications that support XML-RPC blog APIs.
Code
function _blogapi_get_node_types() {
$available_types = variable_get('blogapi_node_types', array('blog'));
$types = array();
foreach (node_list() as $type) {
if (node_access('create', $type) && in_array($type, $available_types)) {
$types[] = $type;
}
}
return $types;
}
Login or register to post comments