wp-content/plugins/contact-form-7-multi-step-module/form-tags/module-multistep.php
/**
 * Return the step value and next url in an array.  URL may be empty.
 */
Return the step value and next url in an array.  URL may be empty.
Return the step value and next url in an array . URL may be empty .
function cf7msm_format_multistep_value( $valueString ) {
    $no_url = false;
    $next_url = '';
    $i = stripos( $valueString, '-' );
    $curr_step = substr( $valueString, 0, $i );
    $j = stripos( $valueString, '-', $i+1 );
    if ( $j === FALSE ) {
        $j = strlen( $valueString );
        $no_url = true;
    }
    $total_steps = substr( $valueString, $i+1, $j-($i+1) );
    if ( !$no_url ) {
        $next_url = substr( $valueString, $j+1 );
    }
    return array(
        'curr_step'   => $curr_step,
        'total_steps' => $total_steps,
        'next_url'    => $next_url
    );
}
function cf7msm_format_multistep_value ( $ valueString ) { $ no_url = false ; $ next_url = '' ; $ i = stripos ( $ valueString , '-' ) ; $ curr_step = substr ( $ valueString , 0 , $ i ) ; $ j = stripos ( $ valueString , '-' , $ i + 1 ) ; if ( $ j === FALSE ) { $ j = strlen ( $ valueString ) ; $ no_url = true ; } $ total_steps = substr ( $ valueString , $ i + 1 , $ j - ( $ i + 1 ) ) ; if ( ! $ no_url ) { $ next_url = substr ( $ valueString , $ j + 1 ) ; } return array ( 'curr_step' => $ curr_step , 'total_steps' => $ total_steps , 'next_url' => $ next_url ) ; }
Return the step value and next url in an array.
Return the step value and next url in an array .