Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
show the links between the different steps
// msnf.module
function msnf_preprocess_msnf_block_step_info(&$vars) {
...
}
I added a fragment of my code, at night I put the patch
// line 627
'data' => l(msnf_translate(array($step->step_name, $step->bundle, 'label'), $step->label), current_path(),array('query' => array('step'=>$step_name),'absolute' => true ) ),
Comment | File | Size | Author |
---|---|---|---|
#2 | msnf-links_in_block_of_steps-1980580.patch | 1.11 KB | tregismoreira |
Comments
Comment #1
stBorchertNo patch is needed as you can simply override the code using the preprocess function in your theme.
Example:
function garland_preprocess_msnf_block_step_info(&$vars) { ... }
Comment #2
tregismoreira CreditAttribution: tregismoreira commentedWhy can't we assume the links as default? So, if it's the current step, we can output it as plain text.
Look this patch.
Comment #3
tregismoreira CreditAttribution: tregismoreira commentedComment #4
stBorchertSee http://drupalcode.org/project/msnf.git/blob/refs/heads/7.x-1.x:/README.t...
Using the feature will cause data loss when switching to another step so this is for advanced users only and therefore disabled by default.
Comment #5
tregismoreira CreditAttribution: tregismoreira commentedOf course, but users can be informed of this. Perhaps this can be implemented as an optional extra, but I think you should not ignore this feature ;)
Comment #6
tregismoreira CreditAttribution: tregismoreira commentedBTW, look this (my) another issue #2015927: Display error message when try to skip steps with unfilled required fields