Results 1 to 1 of 1

Thread: Plugin Dependencies - Plugin A requires Plugin B

  1. #1
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,863
    Blog Entries
    88
    Thanks
    486
    Thanked 810 Times in 529 Posts

    Default Plugin Dependencies - Plugin A requires Plugin B

    With plugins playing such a large role in Hotaru CMS, it's important that they play nicely with each other.

    If your plugin relies on other plugins to function, specify them with "requires: " in the comments section at the top of your plugin file. E.g:

    Code:
    <?php
    /**
     * name: Example plugin
     * description: Doesn't do anything
     * version: 0.1
     * folder: example
     * class: ExamplePlugin
     * requires: submit 0.1, users 0.1
     * hooks: install_plugin, theme_index_top
     */
    Important!

    The "requires: " line should be a comma-separated list of plugin_folder *space* plugin_version pairs.

    If your plugin doesn't require any other plugins, don't include "requires: ". An empty "requires: " will generate an error.
    Last edited by Nick; 01-06-2010 at 02:37 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •