Self-made node editing form [solved]

Sorry for my bad english.
I have the type of material group_record, it has a field taxonomy_term_reference and I need for editing material to remove or add some items in it.
Do the following manner
described in the module function:

function group_record_node_form($form, $form_state,$node){
$form = drupal_get_form('node_form', $node);

$lang = $node->language;
$form_state['node'] = $node;
$options = get_avialable_groups($node->uid);
$form['field_group'][$lang]['#options'] = $options;

How to set background image of div from views field

Hi

I am new to drupal (using drupal 7) and PHP. I am developing a site for vintage bikes company. I have a block on right of home page called 'Featured Bike'. This block displays: one featured bike image and its model name as title at a time, from nodequeue and views.

I am struggling to get this featured bike image (which is image field) as backdround-image of the div which holds it.

I was able to add theme_image() as preprocess function in template.php.

function theme_image($variables) {
  $attributes = $variables['attributes'];
  $attributes['src'] = file_create_url($variables['path']);

  foreach (array('width', 'height', 'alt', 'title') as $key) {

    if (isset($variables[$key])) {
      $attributes[$key] = $variables[$key];
    }
  }

  return '<img' . drupal_attributes($attributes) . ' />';
}

This function is returning the 'img' tag along with 'src, title, alt, height and width' info.
In my views-views-nodequeue-1-fields.tpl.php file, one of the allowed variables is $fields.
When i do something like this:
<div style="background-image: url(<?php print $fields['entity_id']->content; ?>)>
The value of $fields['entity_id']->content prints img src="..." alt="..." and so on..

Whereas I only want to extract the path of the $fields['entity_id']->content and print it in the url of BG image.

Library Management System

i want to develop a library management system using drupal since i am newbie i bit confused what all module can be used , so please suggest me which all modules can be used to build the system

Menu organization and Sectioning problem

Hi to all, i have a little problem with sectioning i have i site which has two sections and each section has it's own main menu and both sections have couple of shared "about" nodes so i thought i could make menu like this:

Main-Menu
->Section A
--> Section A Link 1
--> Section A Link 2
--> Section A Link 3
->Section B
--> Section B Link 1
--> Section B Link 2
--> Section B Link 3

About-Menu
-> About Menu Link 1
-> About Menu Link 2
-> About Menu Link 3

Module for IPB user database link

Hey,

I have a brand new Drupal 7 website, although at the moment I have no users able to register or login. Our website forums are powered through IPB boards on another domain and hosting service, but we have an established user base with different user groups on there.

So we want to use the established IPB user database for our Drupal site.

I am looking for someone to create a module for Drupal that links and uses the IPB forum database for its user database, including user group.

Webform not emailing results

I have recently install the Webform module. It is working fine for developing a form and adding fields but when I submit a form, I do not get an email. I indicated in the Email settings to send to my personal email but nothing comes through. Can anyone tell me how to get this Webform to email the results?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x