See the Mailing lists or Drupal Issue queue. There are also various working groups on groups.drupal.org

cleanurls breaks avatars

Enabling cleanurls breaks avatars (and I'm assuming all other images) on modules that use "subdirectories". For instance, I have a module that can be called several ways:

http://devserver/?q=mymod
http://devserver/?q=mymod/one
http://devserver/?q=mymod/two
http://devserver/?q=mymod/three

etc.
With cleanurls off, avatars work just fine. With cleanurls on, the URLs look like this

Another filter selection for admin/user/user

In the same veign as the last version of this.
The one for admin/content/node actually interfered with this working (???)
This one solves whatever problem was cause, fixes a bug that was already there, and introduces disjunctive selection - in one way.
Because the module account_type relies on the radio button structure, this cannot work with that module enabled, until some change is made to that module.

Here is the code that would be altered in user.module

/**
* Implementation of hook_user_operations().
*/
function user_user_operations() {
global $form_values;

$operations = array(
'unblock' => array(
'label' => t('Unblock the selected users'),
'callback' => 'user_user_operations_unblock',
),
'block' => array(
'label' => t('Block the selected users'),
'callback' => 'user_user_operations_block',
),
'delete' => array(
'label' => t('Delete the selected users'),
),
);

if (user_access('administer access control')) {
$roles = user_roles(1);
unset($roles[DRUPAL_AUTHENTICATED_RID]); // Can't edit authenticated role.

$add_roles = array();
foreach ($roles as $key => $value) {
$add_roles['add_role-'. $key] = $value;
}

$remove_roles = array();
foreach ($roles as $key => $value) {
$remove_roles['remove_role-'. $key] = $value;

$content and what is before it

Man, I was going along GREAT with my new theme for Drupal, but found an issue I can not overcome, and seems no one in the "themes" forum can figure out either, so I am REALLY begining to think this is a core issue that I am missunderstanding

Here is the deal. When you use $content in your page.tpl.php there is a mysterious "blank" spot the ends up showing up ABOVE the contents of $content.

Now let me explain some things before you start guessing.

We have discussed this at this link: http://drupal.org/node/155575

Now here is the situation.

You can take a fresh, clean install, then create a new theme.

Now that you have a new theme, if you just leave out everything, create a div and inside this div create another div and type Hi, then close out of the inner div. Below that type:

print $content and then close out of the firstdiv....note you may have to use background color ( a color for the main div, a color for the body of the document and a color for the 'hi') in order to "SEE" the space that shows up.

ie..
< div>

< div>
Hi
< /div>

< ?php print $content ?>
< /div>

Now WHERE IS THIS SPACE between the welcome text and the Hi coming from????

Take out the Hi if you would like, or even the hi and the div the Hi is in...wont matter, this "mysterious space" still shows up!

expand_checkboxes might allow at least one level of checkbox grouping.

In an attempt to get a checkbox selection on a filter form, I needed to handle an array of arrays which turned out to be a grouping of selections.
The top level array is, of course, the array of the box groups. And, each array element is a list of checkboxes.
This turns out to be a group originally targeted at a selection list (). But, there is sometimes a need to turn a single selection into a multiple one.
In this case, changing form API code by transforming '#type' => "select" into '#type' => 'checkboxes'.

So, I thought maybe the checkboxes could be grouped into field lists. (This works for one application.) Of course, there is perhaps a better way. I have been using OAT during the last few weeks. And, they can make a tree, or nested UL lists, into expandable and collapsible checkbox trees. So, now I am wondering how to make that work with this form API.

In the mean time, the following solved one problem and integrates well with the form api. This change is made in form.inc:

function expand_checkboxes($element) {
$value = is_array($element['#value']) ? $element['#value'] : array();
$element['#tree'] = TRUE;
if (count($element['#options']) > 0) {
if (!isset($element['#default_value']) || $element['#default_value'] == 0) {
$element['#default_value'] = array();
}

Fixing username before login

Hi

I'm new to Drupal development, so please bear with me. I'm currently working on a drupal module, which authenticates a user against an existing database from a customer. The username in this database is like 'C####' (# being a digit from 0 to 9).

menu_get_active_nontask_item()

Hi drupaler,

Any one can tell me menu_get_active_nontask_item() is used for? Thanks.

Pages

Subscribe with RSS Subscribe to RSS - Deprecated - Drupal core