[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/masquerade/ -> masquerade.module (summary)

(no description)

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

Defines 24 functions

  masquerade_help()
  masquerade_perm()
  masquerade_init()
  masquerade_cron()
  masquerade_menu()
  masquerade_menu_link_alter()
  masquerade_translated_menu_link_alter()
  masquerade_access()
  masquerade_admin_settings()
  masquerade_admin_settings_validate()
  masquerade_admin_settings_submit()
  _masquerade_user_load()
  masquerade_user()
  masquerade_block()
  masquerade_block_1()
  masquerade_block_1_validate()
  masquerade_block_1_submit()
  masquerade_autocomplete()
  masquerade_autocomplete_multiple()
  masquerade_autocomplete_user()
  masquerade_switch_user_page()
  masquerade_switch_user()
  masquerade_switch_back_page()
  masquerade_switch_back()

Functions
Functions that are not part of a class:

masquerade_help($path, $arg)   X-Ref
Implementation of hook_help().


masquerade_perm()   X-Ref
Implementation of hook_perm().

return: array

masquerade_init()   X-Ref
Implementation of hook_init().


masquerade_cron()   X-Ref
Implementation of hook_cron()

Cleanup masquerade records where people didn't use the switch back link
that would have cleanly removed the user switch record.

masquerade_menu()   X-Ref
Implementation of hook_menu().


masquerade_menu_link_alter(&$item)   X-Ref
Implementation of hook_menu_link_alter().

We need to add a token to the Masquerade paths to protect against CSRF
attacks. Since menu items in Drupal do not support dynamic elements these
tokens need to be added during rendering via an implementation of
hook_translated_menu_link_alter. Set the 'alter'-option to TRUE to make sure
the links get passed through hook_translated_menu_link_alter.

masquerade_translated_menu_link_alter(&$item, $map)   X-Ref
Implementation of hook_translated_menu_link_alter().

Dynamically add the CSRF protection token to the Masquerade menu items.

masquerade_access($type, $uid = NULL)   X-Ref
Determine if the current user has permission to switch users.

param: string $type
param: object $uid
return:

masquerade_admin_settings()   X-Ref
No description

masquerade_admin_settings_validate($form, &$form_state)   X-Ref
No description

masquerade_admin_settings_submit($form, &$form_state)   X-Ref
No description

_masquerade_user_load($username)   X-Ref
Wrapper around user_load() to allow the loading of anonymous users.

param: $username
return:

masquerade_user($op, &$edit, &$edit_user, $category = NULL)   X-Ref
Implementation of hook_user().


masquerade_block($op = 'list', $delta = 0, $edit = array()   X-Ref
Implementation of hook_block().


masquerade_block_1($record)   X-Ref
Masquerade block form.


masquerade_block_1_validate($form, &$form_state)   X-Ref
Masquerade block form validation.


masquerade_block_1_submit($form, &$form_state)   X-Ref
Masquerade block form submission.


masquerade_autocomplete($string)   X-Ref
Returns JS array for Masquerade autocomplete fields.


masquerade_autocomplete_multiple($string)   X-Ref
Returns JS array for Masquerade autocomplete fields. Supports multiple entries separated by a comma.


masquerade_autocomplete_user($string)   X-Ref
Replacement function for user_autocomplete which allows the use of a comma
separated list of user names.


masquerade_switch_user_page($uid)   X-Ref
Page callback to switch users.


masquerade_switch_user($uid)   X-Ref
Function that allows a user with the right permissions to become
the selected user.

param: $uid
return:

masquerade_switch_back_page()   X-Ref
Page callback that allows a user who is currently masquerading to become
a new user.


masquerade_switch_back()   X-Ref
Function for a masquerading user to switch back to the previous user.




Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7