You are here

function restful_get_authentication_plugin in RESTful 7

Include CTools plugins and get the specified authentication plugin.

Parameters

string $plugin_name: If provided this function only returns the selected plugin.

Return value

array The selected plugin for restful authentication.

2 calls to restful_get_authentication_plugin()
restful_get_authentication_handler in ./restful.module
Return the authentication handler based on the authentication plugin name.
restful_token_auth_restful_parse_request_alter in modules/restful_token_auth/restful_token_auth.module
Implements hook_restful_parse_request_alter()

File

./restful.module, line 101

Code

function restful_get_authentication_plugin($plugin_name) {
  ctools_include('plugins');
  return ctools_get_plugins('restful', 'authentication', $plugin_name);
}