Function Reference: geodir_payment_notification_add_bcc_option
Summary
This function has not been documented yet.
Source Code
function geodir_payment_notification_add_bcc_option($settings) { if (!empty($settings)) { $new_settings = array(); foreach ($settings as $setting) { if (isset($setting['id']) && $setting['id']=='site_bcc_options' && isset($setting['type']) && $setting['type']=='sectionend') { $geodir_bcc_expire_yes = array( 'name' => __( 'Expire listings', 'geodir_payments' ), 'desc' => __( 'Yes', 'geodir_payments' ), 'id' => 'geodir_bcc_expire', 'std' => 'yes', 'type' => 'radio', 'value' => '1', 'radiogroup' => 'start' ); $geodir_bcc_expire_no = array( 'name' => __( 'Expire listings', 'geodir_payments' ), 'desc' => __( 'No', 'geodir_payments' ), 'id' => 'geodir_bcc_expire', 'std' => 'yes', 'type' => 'radio', 'value' => '0', 'radiogroup' => 'end' ); $new_settings[] = $geodir_bcc_expire_yes; $new_settings[] = $geodir_bcc_expire_no; $geodir_bcc_invoice_yes = array( 'name' => __( 'Payment Invoice', 'geodir_payments' ), 'desc' => __( 'Yes', 'geodir_payments' ), 'id' => 'geodir_bcc_invoice', 'std' => 'yes', 'type' => 'radio', 'value' => '1', 'radiogroup' => 'start' ); $geodir_bcc_invoice_no = array( 'name' => __( 'Payment Invoice', 'geodir_payments' ), 'desc' => __( 'No', 'geodir_payments' ), 'id' => 'geodir_bcc_invoice', 'std' => 'yes', 'type' => 'radio', 'value' => '0', 'radiogroup' => 'end' ); $new_settings[] = $geodir_bcc_invoice_yes; $new_settings[] = $geodir_bcc_invoice_no; } $new_settings[] = $setting; } $settings = $new_settings; } return $settings; }