Needs review
Project:
Context Form Alteration
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2014 at 16:31 UTC
Updated:
28 Feb 2014 at 20:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jsacksick commentedComment #2
doublejosh commentedWhat an interesting bonus!
What about regex :)
Comment #3
jsacksick commentedI don't see a need for that, but perhaps you have some examples where it can be useful? The form id I'm building looks like string_(entity_type)_(entity_id).
The strpos will work for that because the beginning of the string is static.
Comment #4
doublejosh commentedMaybe it should borrow the same wildcard setup seen often for path textareas.
Comment #5
jsacksick commentedWhy not, though using
drupal_match_path()sounds kind of weird, but it could/should work.Comment #6
doublejosh commentedThe function name does make us feel bad, but what is provides is right. This is a great idea, not sure when I will need it add it. Happy to accept a patch!