Make WordPress Core


Ignore:
Timestamp:
08/14/2008 06:30:38 AM (17 years ago)
Author:
westi
Message:

phpdoc for wp-admin. See #7496 props santosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/textpattern.php

    r7645 r8645  
    11<?php
    22/**
    3     Add These Functions to make our lives easier
    4 **/
     3 * TextPattern Importer
     4 *
     5 * @package WordPress
     6 * @subpackage Importer
     7 */
    58
    69if(!function_exists('get_comment_count'))
    710{
     11    /**
     12     * Get the comment count for posts.
     13     *
     14     * @package WordPress
     15     * @subpackage Textpattern_Import
     16     *
     17     * @param int $post_ID Post ID
     18     * @return int
     19     */
    820    function get_comment_count($post_ID)
    921    {
     
    1527if(!function_exists('link_exists'))
    1628{
     29    /**
     30     * Check whether link already exists.
     31     *
     32     * @package WordPress
     33     * @subpackage Textpattern_Import
     34     *
     35     * @param string $linkname
     36     * @return int
     37     */
    1738    function link_exists($linkname)
    1839    {
     
    2344
    2445/**
    25     The Main Importer Class
    26 **/
     46 * TextPattern Importer Class
     47 *
     48 * @since unknown
     49 */
    2750class Textpattern_Import {
    2851
     
    671694
    672695$txp_import = new Textpattern_Import();
     696
    673697register_importer('textpattern', __('Textpattern'), __('Import categories, users, posts, comments, and links from a Textpattern blog.'), array ($txp_import, 'dispatch'));
     698
    674699?>
Note: See TracChangeset for help on using the changeset viewer.