This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

flickr_block: image URLs have wrong server?

I've installed flickr_block into my Drupal 4.6.6 installation, and have it mostly working. That is, it's successfully going off to flickr, finding a set of my pictures, and returning an appropriately structured block. The problem is that, of the four pictures, the image URLs for two of them are incorrect: they refer to flickr servers that don't exist (e.g., photos50.flickr.com and photos39.flickr.com), and I get the "missing image" presentation in the webpage.

execute a function before hook_insert

How would I go about executing a custom function before hook_insert is called, so that the output of my function can be inserted into node->body and written to the database?

Thanks,

Doug Gough

Theming a 4.7 form

Good morning,

I'm relatively new to Drupal and working on my first module.

I've successfully created a new form for my module:
function timeoff_form(&$node) {

$form['info'] = array(
'#type' => 'fieldset',
'#title' => t('Employee Info')
);

$form['info']['employee_name'] = array(
'#type'=> 'markup',
'#value' => t('

Employee Name:
' . $user->name . '

'),
);

$form['info']['date_submitted'] = array(
'#type'=> 'markup',
'#value' => t('

Date Submitted:
' . date("l, F d, Y") . '

'),
);

$form['info']['clock_number'] = array(
'#type'=> 'textfield',
'#title' => t('Clock #'),
'#required' => TRUE,
'#maxlength' => 20
);

$form['info']['department'] = array(
'#type'=> 'textfield',
'#title' => t('Department'),
'#required' => TRUE,
'#maxlength' => 40
);

$form['request_info1'] = array(
'#type' => 'fieldset',
'#title' => t('Request #1'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);

$form['request_info1']['dates_out1'] = array(
'#type'=> 'textfield',
'#title' => t('Date(s) to be out'),

Page not found login page

I am user drupal 4.7beta. I have made a custom theme. But now when i open my page, the page works fine, but the name of the page is "page not found".

I can't seem to find the solution. I think my problem is somewhere in my theme. But i can't see a difference in code with a standard theme.

Has some one foun the solution to this problem?

Problem with pager and i18n

Helo everybody

I have problems with pager after install of i18n module. My default language is Polish, additional is English. On English blog pager links direct to Polish pages: for example first pager link from http://www.obin.org/en/blog should direct to http://www.obin.org/en/blog?from=8 but it direct to http://www.obin.org/pl/blog?from=8

Add current page, node as bookmark

Hi,
I am new to drupal and using drupal 4.6. I need a functionality whereby I can add current node or flexinode which I am viewing to my bookmarks. I have installed bookmark module..But i don't know how to add every page I am viewing as book mark....also is it possible to add a button for that...

any help will be appreciated..

Thanks a lot

Lokesh Gupta

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions