Has anyone written (or is it even possible) an action for the Actions module that does this?
Say: if a user has signed up and logged in. They then publish a new Organic Group node (a new "group"). I need the system to then change their role from just Authenticated User to a new "Group Leader" role.
I'm just clueless as to even how to start trying to write something like this. I can putz around with PHP code, but I'm far from being a coder.
Trying to use several instances of tinyMCE on one page
with modules like "excerpt". The data from "excerpt" textarea
is not submitted. I heve similar results with "home made" modules
which use several textareas substituted with tinyMCE.
tinyMCE works fine when I only use it in one textarea on page.
If i disable richtext editor in all textareas but one, everything
works fine as well.
Please help. Need several textareas with rich text editor.
I was wondering how i could validate the settings a site administrator makes in the hook_settings().
For a module i'm creating, the admin can choose from dropdownlists containing numbers, but the first selected number should always be smaller then the second.
Now i put some checks in hook_validate(), but the code never gets executed.
How would i go about validating the settings a site administrator made?
I'm trying to create a php block that uses prototype.js's Ajax.Updater function to execute a php file. however the php file doesn't seem to be able to access the globals variables $user and $active_db.
If I print_r($GLOBALS) I get a [GLOBALS] -> Array *RECURSIVE* which I know means that the GLOBALS variable is referencing itself, but not sure why or how I can just get access to the the $user and $active_db objects.
Any ideas? Less then 2 weeks on drupal, 3 years on PHP.