I am looking for a solution that can put an extra input box for a target email address when, and only when, create a story-like node. The email contains first 50 letters of the node content along with a invitation message and a url to the node. Upon receiving the email, the node creator's friend can go there and put some comments. (drupal 4.7)
I've using node_privacy_byrole, and it does a fine job at preventing unauthorized viewing/editing
but, i would expect that menu items that reference nodes that are not viewable (because of node_privacy_byrole rules) would not be visible in the menu system
showing menu items to users, that when clicked just lead to an "access denied" page, doesn't make a lot of sense to me
is there something wrong with my installation of node_privacy_byrole? or is that just not functionality that it supports?
Title says it all really, I'm using 4.7 and trying to set the title on a teaser as I would do using drupal_set_title on hook_view. I've done a little searching and found some references to nodeapi and some similar stuff with the cck module but not been able to deduce how exactly to do it.
When adding a node based on a CCK type i want to change the default value in the select list based on a value in the current users profile.
Using hook_form_alter() this is easy for other fields, but the select field appears to ignore whatever #default_value i set.
Example, I have a list of states that are selectable in a CCK node form. [field_state] => Array
(
[#tree] => 1
[key] => Array
(
[#type] => select
[#title] => State
[#default_value] => AL
[#multiple] =>
[#options] => Array
(
[1] => AK
[2] => AL
[3] => AR
[4] => AZ
[5] => CA
[6] => CO
[7] => CT
[8] => DE
[9] => FL
[10] => GA
[11] => HI
[12] => IA
[13] => ID
[14] => IL
[15] => IN
[16] => KS
[17] => KY
[18] => LA