You are here

function fckeditor_user in FCKeditor - WYSIWYG HTML editor 6.2

Same name and namespace in other branches
  1. 5.2 fckeditor.module \fckeditor_user()
  2. 6 fckeditor.module \fckeditor_user()

Implementation of hook_user().

This function delegates execution to fckeditor_user_delegate() in fckeditor.user.inc to lower the amount of code in fckeditor.module

File

./fckeditor.module, line 65
FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben

Code

function fckeditor_user($type, $edit, &$user, $category = NULL) {
  if ($type == 'form' && $category == 'account' && user_access('access fckeditor') || $type == 'validate') {
    module_load_include('user.inc', 'fckeditor');
    return fckeditor_user_delegate($type, $edit, $user, $category);
  }
  return NULL;
}