How would I go about filtering the block view to display all birthdays for the current month?
Also from today to the end of the month?
Edit your view. Advanced -> Contextual filters -> Add User: Birthdays (birthday:month) -> Provide default value: PHP Code, return date('m', REQUEST_TIME);.
return date('m', REQUEST_TIME);
Then change the pager to show all entries, not five, if you want to see all.
Admittedly this is not very straight forward and requires one bit of PHP code. So change to feature request? Further questions?
Thank you. That works.
I was looking for some settings under the Filter Criteria to accomplish this.
To me it seems this would be a common use case so I will change the category to a feature request.
Yes, I agree, that it would make sense to have some pre-defined value for this, just like the contextual filter for the Date module.
Where is the "PHP Code" option ? If you choose to display users in a view, you don't have this.
You do. Did you follow Advanced -> Contextual filters -> Add User: Birthdays (birthday:month) -> Provide default value?
Yep, but no 'PHP Code' option in the 'Type' list under.
You will get the PHP option when you install and enable the Views PHP module. Note that this module only has a development release, you will want to check the issue queue before you use this.
(This Views PHP issue is especially nasty: #1140896: Variable $row does not contain correct values ($data->_field_data does))
(Note that for Contextual filters Views PHP is not required.)
Drupal is a registered trademark of Dries Buytaert.