You are here

function page_manager_http_response_codes in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/plugins/task_handlers/http_response.inc \page_manager_http_response_codes()

Provide a list of the response codes we support.

Abstracted so it can be more readily used both on input and output.

2 calls to page_manager_http_response_codes()
page_manager_http_response_admin_summary in page_manager/plugins/task_handlers/http_response.inc
page_manager_http_response_edit_settings in page_manager/plugins/task_handlers/http_response.inc
General settings for the panel.

File

page_manager/plugins/task_handlers/http_response.inc, line 106
This is the task handler plugin to handle generating 403, 404, 301 and 302 response codes.

Code

function page_manager_http_response_codes() {
  return array(
    403 => t('403 Access denied'),
    404 => t('404 Page not found'),
    410 => t('410 Gone'),
    301 => t('301 Permanent redirect'),
    302 => t('302 Temporary redirect'),
  );
}