コード例 #1
0
ファイル: hooks.php プロジェクト: lorea/Hydra-dev
/**
 * Check if registration is disabled, if so check for a valid group invite code and allow registration
 *
 * This will allow access to the registration page
 *
 * @param string $hook         'action'
 * @param string $type         'register'
 * @param bool   $return_value true is the action is allowed to procceed
 * @param null   $params       null
 *
 * @return void
 */
function group_tools_action_register_handler($hook, $type, $return_value, $params)
{
    // enable registration if disabled
    group_tools_enable_registration();
}
コード例 #2
0
ファイル: Router.php プロジェクト: coldtrick/group_tools
 /**
  * Allow registration with a valid group invite code
  *
  * Both access to the registration page and the registration action
  *
  * @param string $hook         the name of the hook
  * @param string $type         the type of the hook
  * @param array  $return_value current return value
  * @param null   $params       supplied params
  *
  * @return void
  */
 public static function allowRegistration($hook, $type, $return_value, $params)
 {
     // enable registration if disabled
     group_tools_enable_registration();
 }