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

form_render warning

With this code:

  $form['name'] = array(
    '#type' => 'textfield',
    '#title' => t('Name'),
    '#size' => 30,
    '#maxlength' => 64,
    '#description' => t('Enter the name for this group of settings'),
  );
$output = form_render($form['name']);
return $output;

I Have this warning:

Changing blocks depending on referring website

I ran across a nice module that changes themes depending on the referring website (http://drupal.org/node/46113 , not updated yet for 4.7). I am looking for a way to provide partner websites to display their header/logo/links at the top of my page if visitors come from their sites. But creating 100+ different themes doesn't seem like the best option, since all I need to change is one block.

I think a better option for my purposes would to have a module that changes blocks depending on referring website.

how to show block on the page of node which belongs some terms

Hello
how to show block on the page of node which belongs some taxonomy/terms?

Disabling Signature's for Drupal

I've been running a fairly large Drupal Community site with the phpbb mod. I've been having problems updating the signatures, as phpbb will allow BBCode, and drupal, even with the BBCode mod, doesn't translate the signatures updating in phpbb. So when i update from phpbb with [img]imghere[/img] i get a working image, where as from drupal i get the writen text [img]imghere[/img]

Ideally i would like to either:

1. Disable signatures from My Account, so they do not update when updating My Account.

2. Make signatures work with BBCode

Troubles with taxonomy

I am building a module that provides a user to enter an address (amongst other things), I am using city and state as taxonomy terms and taxonomy menu to give a simple method to drill down to the data you want...

Instead of using a "categories" block to manage this, I am allowing the user to plug their address into a standard 4 line form, and my hook_insert figures out the taxonomy terms from the form and attempts to insert them.

My sql resulted in

db_query("INSERT INTO {term_node} (nid,tid) VALUES (%d,%d)",$node->nid, $city);

How to wrap a website in drupal

Hello

I am trying to wrap my osticket application in drupal.

ostickets calls
include_once(header)
include_once(includefile)
include_once(footer)

I need to get the content of include_once(includefile_ and return to drupal view function as $output

Could someone please let me know how can I do this?

e.g
function osticket_page(){

$OSTICKET_PATH = drupal_module_path

$output = somehow include_once($OSTICKET_PATH."/includefile)

return $output
}

Pages

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