This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

drupal_set_title on node creation pages

I'm running into an issue where I think I know what's going on, but I'd like to be sure - and to hopefully find an elegant solution.

I'm trying to use drupal_set_title() to change the title of a node creation form. Here's my situation:

passing arguments

here we go.

Hi all.

I'm developing a new website that will support a game (with standings and a report system) using this vg cms.

Now im getting a problem with a function in a module in which I'd like to pass one argument.

Pseudo-code to let u understand better:

function my_func() {

if (submit has been pushed)
execute something and show me the result

else
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Start'),
'#weight' => 1,
);

}

themeing custom node with theme_xxx()

I created a custom node and want to create a custom theme. I know that I can create a node-mycustomnode.tpl.php in the theme section but I want to use a theme_xxx() function so that I can keep all the code in the module directory instead of the theme directory,

My first thought was to use theme_node-customnode() which of course fails because '-' are not allowed in function names.

Does anyone have the answer for this?

i18n doesn't properly switch anymore

Hi,

I have been using i18n for a while now and it works really good. Agreed, it is confusing at times, but has helped me a lot.
Now however, my nodes (recipes) suddenly won't translate anymore. If you switch language while viewing the node, n stays the same instead of switching. I checked and the translated node exists, but isn't displayed. The site is http://www.raw-vegan.org if you want to see.

Anyone has had a similar problem?

node_profile_bonus HELP!!

Hi,

Can anyone show me where I can find this mod as it has disappeared from the module system!!

Thanks

Form fieldsets displayed as tabs

Hi, this is my first post.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions