function

valerama's picture

help me with a few drupal issues | CDG Marketing (me)

Employment type: 
Contract
Telecommute: 
Allowed

I've set up a Drupal site for a client. It was the only platform that had a module/plugin with the functionality of FillPDF. I've got the main functionality all taken care. (hired someone on freelancer.com to do the heavy lifting)

Read more
screenack's picture

Moving the webform required marker

The concept of what I want to do is simple:

Using Drupal 7 + Webforms, I wish to move the "required marker" from after the field label, to after the label itself.

Consider this example:

Read more
DrupalCuckoo's picture

Call hook_node_access_records() from custom function

hi,

usually the hook "hook_node_access_records($node)" gets called when you hit the save-button on the edit page of a node. I need to call this function outside the edit-form.

I'm building a custom content-privacy module and I need to call this function for all existing nodes filtered by content-type (for example all blog nodes).

The problem I have is that this hook needs a node-object as a parameter. When being on a node-edit page (node/[NID]/edit) this object will be available. But when I don't edit a node I have no node-object available.

Read more
Lexas's picture

Adding classes and functions

Hello guys.

I'm starting to work on Drupal and I'm gonna build a few themes based on Zen.

But I'm still not used with the .info file. I'd like to add some custom classes and function on the subthemes, by adding new .php files, and if possible it should be added just once on the base Zen theme and just referenced on the other themes.

The problem is that I can't make it work... It works if on each page/story I use the include_once function, as in this exemple:


include_once("sites/all/themes/zen/zen/Mailto.php");
$mailto = new Mailto();

Read more
Subscribe with RSS Syndicate content