You are here

function _entityform_type_get_path_types in Entityform 7

Same name and namespace in other branches
  1. 7.2 entityform.module \_entityform_type_get_path_types()

Utility function to get path types for an Entityform Type

Parameters

$type:

Return value

array

4 calls to _entityform_type_get_path_types()
EntityformTypeController::delete in ./entityform.module
Overridden to delete aliases and clear cache.
EntityformTypeController::export in ./entityform.module
Overridden.
EntityformTypeController::load in ./entityform.module
Overridden to load paths also
entityform_type_form in ./entityform_type.admin.inc
Generates the entityform type editing form.

File

./entityform.module, line 1370
Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface

Code

function _entityform_type_get_path_types($type) {
  return array(
    'submit' => array(
      'default_path' => _entityform_type_get_submit_url($type),
      'title' => 'Submit URL alias',
      'description' => 'Optionally specify an alternative URL by which the form submit page can be accessed.',
    ),
    'confirm' => array(
      'default_path' => _entityform_type_get_confirm_url($type),
      'title' => 'Confirm URL alias',
      'description' => 'Optionally specify an alternative URL by which the form confirmation page(after the form has been submitted) can be accessed.',
    ),
  );
}