You are here

function restful_get_rate_limit_plugin in RESTful 7

Include CTools plugins and get the specified rate_limit plugin.

Parameters

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

Return value

array The selected plugin for rate limits.

1 call to restful_get_rate_limit_plugin()
RestfulRateLimitManager::checkRateLimit in plugins/rate_limit/RestfulRateLimitManager.php
Checks if the current request has reached the rate limit.

File

./restful.module, line 129

Code

function restful_get_rate_limit_plugin($plugin_name) {
  ctools_include('plugins');
  return ctools_get_plugins('restful', 'rate_limit', $plugin_name);
}