D7 port of file module - add some fields

Hi there,

need some help with this code - like to port a module - scibdfield to D7.

What should I do with this code? Don't know how to port this? How to add this fields in D7? Do I need the "data" array anymore? It seems that it is not existing in D7? Sould this fields be added like a filediscriptionfield? But how? Or should a hook schema implemented?

Hope some sould give me some hints!


/**
* Implementation of hook_elements().
*/
function scribdfield_elements() {
$filefield_elements = filefield_elements(); // API filefiled
dsm($filefield_elements);
$elements['scribdfield_widget'] = $filefield_elements['filefield_widget'];
$elements['scribdfield_widget']['#process'][] = 'scribdfield_widget_process';
return $elements;
}
/**
* Form API #process callback; see hook_elements().
*/
function scribdfield_widget_process($element, $edit, &$form_state, $form) {
if (_form_button_was_clicked($element['filefield_remove'])) {
unset($element['#value']['data']['scribd_doc_id']);
unset($element['#value']['data']['scribd_access_key']);
unset($element['#value']['data']['scribd_secret_password']);
$_SESSION['scribfield_removed_files'][$element['#delta']]++;
}

// we have no way of knowing if someone has a) edited the node, b) clicked
// Remove, c) uploaded a new file to the same delta. For some reason, the

How to keep content private to my site

I've seen a lot of SEO articles that explain how to get high ranking in SE's but what if you don't want to publish (some) information on the web at all and want to keep it very private? I have a Drupal 7 site that is publishing links for content on the web wich should be kept private.
How can I make sure that information on the site is kept private to only the communicy that can login?

Image with huge description?

Hi there,

Still a newb at D7.

I actually try to make a cook recipes site, and for that, i would like to make step by step recipes, with a picture and a text for each step.

But the image field only allow very short text fiel for title and alt of a picture.

So i'm looking for a way to have a huge description text, linked to each picture of a gallery.

How would i do that please ?

Thank you for your time

subdomain and themes

Hi All

I have setup a couple of subdomains off the main site which are working ok. what I want to do is limit the themes and modules that each subdomain can access ie site1 can have the first 4 themes and site2 the next 4 from the main base domain.

is this possible within Drupal ??

thanks

Paul

SSL cert problem

Hi

I install drupal 7 and working fine. but problem is in SSL functioning. I have install SSL Cert in my server also install and doen required setting of Secure Page module. I also did modification suggested by my webhoster in .htaccess file. i I want to secure my whole domain not a particular pages. But browser shows this website have invalid certificate.

My hostprovider said about this problem that your urls are still using http url:

Content Access - How to use?

Ive managed to build a few sites now in the 3 months ive found Drupal. I know my way around the site now, but I just cannot seem to work out how to use this Module.

I have looked for documentation and cannot find this also.

Any help would be greatly appreciated!

Matt

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x