custom module menu() error after update 7.4 to 7.10

I have been trying to update from v. 7.4 to 7.10 following strictly the upgrade procedure.
After updating, I have an error 'page not found' from a typical page example.com/a/main, the menu a/main being implemented by a custom module as follow:

function misite_menu() {
$items = array();

$items['a/main'] = array(
'page callback' => 'main',
'description' => t('Main front page'),
'access callback' => TRUE,
);

etc...

How can I display my commerce price (VAT included) on node ?

Hello,

I'm a new one and I don't find a simple solution for displaying my price (VAT included) on my node.
In my manage display my price field is formatted amount (dsiplaying a calculate price).
Wich rules to do for my result ? I have a tax rate of .18 already done.

Thanks a lot !

Custom theming of radios type in form

Placing the theme_radios, theme_radio as mytheme_radios, mytheme_radio in the template.php allow me to customize the look and feel of the radios element in forms. However, this apply to every element in the website when I only want to apply to a specific form. I have used #theme with the form in Drupal 5, but cannot seem to get it working in Drupal 7.


$form['myform'] = array(
'#type' => 'radios',
'#title' => 'My title',
'#default_value' => 1,
'#options' => $my_array,
'#required'=> TRUE,
'#scales' => $scales, //array to pass to the theme function.
'#theme' => array('mymodule_radios'),
);

function mymodule_radios($variables) {
global $scales;

$element = $variables['element'];

$attributes = array();
if (isset($element['#id'])) {
$attributes['id'] = $element['#id'];
}
$attributes['class'] = 'form-radios';
if (!empty($element['#attributes']['class'])) {
$attributes['class'] .= ' ' . implode(' ', $element['#attributes']['class']);
}
return '

' . (!empty($element['#children']) ? $element['#children'] : '') . '

';
}

function mymodule_radio($variables) {
global $scales;

$element = $variables['element'];
$element['#attributes']['type'] = 'radio';
element_set_attributes($element, array('id', 'name','#return_value' => 'value'));

drupal_install_test exists - but the installer does not want to continue the work - bug or feature!?

hello dear community,

while installling d 7 on linux box.

i thougth that all is correct -and i have set up all nice - and created a database.

but wait - while the installation process i run into some annoying error-messages: See this

Ebay style result filtering

Hi all!

I have been searching high and low for some time with no luck to a solution to my problem. What I am trying to achieve is the same type of result filtering that ebay offers where the user can filter the results by checking and un-checking boxes om the side of the page to only show the desired results.

Image deletion

I have some png images that I want to replace. I have deleted the old ones and uploaded new images using the same filenames. However, the Drupal keeps reverting to the old images. If I upload the images using different filenames, the new images appear on the page but renaming is inconvenient.

How do I replace an image with one of the same filename?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x