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
I've recently setup the lightbox2 module and it's really great for fixed width sites. There have been a few issues with the image module integration, ones that I cannot alter; however, if they were improved, it would be a great contribution to the module.
I have installed drupal on my main site (http://otg.com),and i have registered my first user as admin(by default they have admin role).Then i have created two users (say test1,test2).What i wanted to do is to diffrentiate the content for diffrenet users.
For example if i logged in as "test1" my theme,content,posts,blogs should be kept as private and when i logged in as "test2" i cannot see the postings ,themes ,contents of "test1" and "test2" have thier own contents.
For a site on which I am working I require a full-featured image gallery. The Shazam Gallery module seems to fit the bill in terms of functionality, but I have some questions about permissions. Basically, I want it so that a user can view an image in a gallery if and only if they can view the gallery itself. What is the best way to do this? I'd prefer not having to alter image.module's hook_access, as this reduces maintainability.