Help needed with theme fucntion overwrite...

Hello all, i recently converted my theme to Drupal 7, but i came across a issue that i can't solve myself, i need to add a new span element inside the li element, but i can't do it cause i lack the knowledge... The code below demonstrates how it has to be and how its right now...

API reference:
http://api.drupal.org/api/function/theme_menu_local_task/7

The code like it has to be:

<ul class="tabs">
<li class=active><a class="active" href="link here">
<span class="tabs">tab title here</span>
<span class="element-invisible">active</span>
</a>
</li>
</ul>

this is the code how its right now:

<ul class="tabs">
<li class=active><a class="active" href="link here">tab title here
<span class="element-invisible">active</span>
</a>
</li>
</ul>

This is the code that adds the "invisible-element" class in the theme, the class is only added when the tab is active, otherwise not! Now i also want to add a other span class, but i want it to be there even if the tab is not active...

<?php
function ashladan_menu_local_task($variables) {
$link = $variables['element']['#link'];
$link_text = $link['title'];

if (!empty($variables['element']['#active'])) {
// Add text to indicate active tab for non-visual users.
$active = '' . t('(active tab)') . '';

How to drop field storage tables when fields are deleted?

Hi there,

Similar to the node example in "Examples for Developers" module (www.drupal.org/project/examples) I've got a module that defines a new node type using node_type_save, creates new fields with field_create_field, and then attaches the fields to the new node type with field_create_instance. This all works great.

WorldPay

Hello
Can any one help me to find out a shopping cart systems that work with WorldPay?

teaching clients to update/maintain drupal sites

Ok I just downloaded the latest version of drupal and about to embark on creating my first site in drupal for a local school. My question is how do you teach a client to update/maintain their site using drupal. They probably will just want to make text and maybe photo changes and I would do anything more technical for them, though I am wondering how difficult is it to teach non-technical clients to use drupal to update their content?

Drupal 7 and 6 with (partially) the same database?

Yes, I understand; red something about that the database of D7 is somehow different than D6, so that might be a problem.

Nevertheless; working with several databases, several users on one database with a different prefix, it all seems possible and has been done over and over..?

The case:

1)
Like to have 2 different Drupal installs working on the same database:
a) external visitors Drupal that needs to be fast and simple - more for viewing info;
b) internal members Drupal that can have many modules, slower and must be ultimate secure.

Boku module SMS payments

Hiya,

Someone just emailed me about the boku module for drupal but I accidentally deleted it before reading it. D'oH! on the off chance you spot this, can you resend the email?

As an aside..for those who don't know what boku is...it's the new name for mobillcash who provide a SMS payments for websites.

cheers

Dub

DublinDrupaller.com | Providing Drupal services in Dublin, Ireland since 2003

* Module Development * Drupal eCommerce development * Theme development
* Site migration to Drupal * On-site development & training

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x