This tag is for questions regarding Drupal 7 specifically. Version tags should be used only when strictly necessary, and not used just to report "I am using Drupal 7 in my site."
0
votes
0answers
5 views
Custom function doesn't get triggered by hook_cron()
I have set up some FeedImporters and I've linked some custom batch imports to these FeedImporters. But for some reason, the function isn't triggered when running the cron... I'm wondering why. Anyone ...
0
votes
0answers
3 views
What is the difference between using theme_table() and theme('table', array())?
I am using following code for theming..
theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('class' => 'view-all-frame')));
is the above format right?
Can ...
0
votes
1answer
15 views
Implementing callback function in hook_menu in d7
In the link given below ,
https://drupal.org/node/224333
So as given in below statement you do not have to declare the callback path* what does this mean?
I have hook_menu() in d6 which is as follows ...
0
votes
1answer
11 views
kpr() in my form validation and submit function is not being called
In my form validation and submit functions, kpr() is not being called. Is there a better way to check that I'm in those functions? If kpr() isn't ideal to output my $form_state array, then what is ...
0
votes
0answers
7 views
Link to anchor on current page with smooth scroll
I have smooth scrolling working (https://drupal.org/project/scroll_to_destination_anchors) and I have linking to anchors working (https://drupal.org/project/menu_token) but I can't get my desired ...
2
votes
0answers
16 views
Image based on node taxonomy terms
Here is what I am trying to do.
If there is an empty image field on a node I want it replaced based on what taxonomy terms are on the page, but the key is I want to apply it site wide so it will ...
0
votes
0answers
5 views
How to remove “catalog” from Ubercart Catalog View URL
I need to remove the word "catalog" from the URL when viewing a category of products. I am using the stock uc_catalog view. Its Page (Table) display has a URL of "/_catalog". What can I change so that ...
1
vote
1answer
23 views
Separate classes in include file not loading?
I have a peculiar problem... I'm trying to simplify my module by breaking up a ton of code into classes, and I have all of the classes in a separate include file that I'm registering in my .info file ...
-2
votes
1answer
16 views
Using select lists with radio buttons
I have a form that has 5 radio buttons. Two of those have optional additional parameters that the user can select. If radio 1 is selected, then only the optional items for that radio would make ...
0
votes
0answers
18 views
PHP notice on update.php
On a Drupal 7 installation I got by inheritance, I am getting the following PHP notice whenever I run upgrade.php:
Notice: Undefined index: scale in number_field_schema()
(line 36 of ...
0
votes
0answers
13 views
Migrating to a Field Collection
I'm working on a project that requires a CSV of speaking engagements to be migrated to Drupal. With Migrate, I've been able to migrate over basic fields, like name, title, etc.
However, the speaker ...
0
votes
0answers
11 views
Can $_POST['form'] be accessed in a function other than ajax callback function?
In drupal js file
the code is as follows :
$.post(Drupal.settings.basePath + 'ort-option-ajax', {formId:formBuildId,} );
and in module file
function ort_option_ajax() {
$check = ...
0
votes
1answer
16 views
How to include a juery ui file in drupal 7? [duplicate]
In my code for drupal 6 I had added the following js, jquery-ui and css files
jquery_ui_add('ui.draggable');
drupal_add_css(drupal_get_path('module', 'ort') . '/js/jquery.alerts.css');
...
-1
votes
0answers
14 views
Checkbox & evolutions
Actually, i'm working on a custom module to display clients. In 'mymodule_admin.inc', I've a form with two checkbox.
//Form in mymodule_admin.inc
function mymodule_choice_form($form, ...
0
votes
0answers
8 views
Using drupal_add_feed() in template.php gives warning errors
As soon as I add a call to drupal_add_feed in my theme template.php file I get this warning:
Warning: call_user_func_array() expects parameter 1 to be a valid
callback, no array or string ...