| 1 |
<?php |
<?php |
| 2 |
// $Id: blogapi.module,v 1.118 2008/04/14 17:48:35 dries Exp $ |
// $Id: blogapi.module,v 1.119 2008/05/13 18:13:43 dries Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 131 |
t('Retrieve information about the text formatting plugins supported by the server.')), |
t('Retrieve information about the text formatting plugins supported by the server.')), |
| 132 |
array( |
array( |
| 133 |
'mt.publishPost', |
'mt.publishPost', |
| 134 |
'blogap_mti_publish_post', |
'blogapi_mt_publish_post', |
| 135 |
array('boolean', 'string', 'string', 'string'), |
array('boolean', 'string', 'string', 'string'), |
| 136 |
t('Publish (rebuild) all of the static files related to an entry from your blog. Equivalent to saving an entry in the system (but without the ping).'))); |
t('Publish (rebuild) all of the static files related to an entry from your blog. Equivalent to saving an entry in the system (but without the ping).'))); |
| 137 |
} |
} |
| 490 |
/** |
/** |
| 491 |
* Blogging API callback. Publishes the given node. |
* Blogging API callback. Publishes the given node. |
| 492 |
*/ |
*/ |
| 493 |
function blogap_mti_publish_post($postid, $username, $password) { |
function blogapi_mt_publish_post($postid, $username, $password) { |
| 494 |
$user = blogapi_validate_user($username, $password); |
$user = blogapi_validate_user($username, $password); |
| 495 |
|
|
| 496 |
if (!$user->uid) { |
if (!$user->uid) { |