[ Index ]

PHP Cross Reference of MyBB

title

Body

[close]

/inc/plugins/ -> hello.php (summary)

MyBB 1.6 Copyright 2010 MyBB Group, All Rights Reserved

File Size: 111 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  hello_info()
  hello_world()
  hello_world_postbit()

Functions
Functions that are not part of a class:

hello_info()   X-Ref
No description

hello_world($page)   X-Ref
ADDITIONAL PLUGIN INSTALL/UNINSTALL ROUTINES

_install():
Called whenever a plugin is installed by clicking the "Install" button in the plugin manager.
If no install routine exists, the install button is not shown and it assumed any work will be
performed in the _activate() routine.

function hello_install()
{
}

_is_installed():
Called on the plugin management page to establish if a plugin is already installed or not.
This should return TRUE if the plugin is installed (by checking tables, fields etc) or FALSE
if the plugin is not installed.

function hello_is_installed()
{
global $db;
if($db->table_exists("hello_world"))
{
return true;
}
return false;
}

_uninstall():
Called whenever a plugin is to be uninstalled. This should remove ALL traces of the plugin
from the installation (tables etc). If it does not exist, uninstall button is not shown.

function hello_uninstall()
{
}

_activate():
Called whenever a plugin is activated via the Admin CP. This should essentially make a plugin
"visible" by adding templates/template changes, language changes etc.

function hello_activate()
{
}

_deactivate():
Called whenever a plugin is deactivated. This should essentially "hide" the plugin from view
by removing templates/template changes etc. It should not, however, remove any information
such as tables, fields etc - that should be handled by an _uninstall routine. When a plugin is
uninstalled, this routine will also be called before _uninstall() if the plugin is active.

function hello_deactivate()
{
}

hello_world_postbit(&$post)   X-Ref
No description



Generated: Tue Oct 8 19:19:50 2013 Cross-referenced by PHPXref 0.7.1