You are here

function path_redirect_condition_path_has_redirect_form in Path redirect 5

File

./path_redirect_workflow.inc, line 33
Workflow-ng integration for the path_redirect module

Code

function path_redirect_condition_path_has_redirect_form($settings = array(), $argument_info) {
  $form['path'] = array(
    '#type' => 'textfield',
    '#title' => t('Existing system path'),
    '#default_value' => $settings['path'],
    '#maxlength' => 255,
    '#size' => 50,
    '#description' => t('Specify the existing path for which you want to check if a redirect exists.'),
    '#field_prefix' => url(NULL, NULL, NULL, TRUE) . (variable_get('clean_url', 0) ? '' : '?q='),
    '#required' => TRUE,
  );
  workflow_ng_token_replacement_help($form, $argument_info);
  return $form;
}