disable/enable & installing/uninstalling Modules programmatically

Hello,

I'm new with Drupal and I'm trying to disable/enable & installing/uninstalling a personal Module programmatically, instead of going via the admin panel however it doesn't seem to work.

here's the action i'm doing (probably wrong)

function _disable_module ($module_name){
$actions['disabled'][] = $module_name;
module_disable($actions['disabled'], false);
}

eveytime this method is excuted i'm losing everything

Like i said i'm not sure about the code, if someone can give a hand it would be appreciated.

Thx

Displaying and sorting articles in a three column content-view.

Hello folks,
I am a designer and developer and start fresh with D7. First of all I like the flexibility – good work!

The website I am working at has a portfolio with projects referred to different categories (e.g. Print, Web, Audio, TV).
Each project can be displayed in several categories. I solved it with a new content type, taxonomy vocabulary and views and its working so far.

a simple php code to grab the first two blog posts (I do not want to use block or views)

a simple php code to grab the first two blog posts (I do not want to use block or views)

I just want a simple php/html code that will get the first two posts of a page, since this page is going to be part of another page with info

LDAP/CAS/SSO for Drupal 7

Hi,

I'm a french student in computing and I'm working on a professional project for my company placement.

I have to use an existing CAS serveur to connect visitor automatically into the Drupal portal.
So, I would like to take stock of the situation about the LDAP/CAS/SSO solutions in DRUPAL 7.

Moreover, the token that the CAS server returns is a XML files with informations about the visitor. Can I analyse this file to fill in the visitor account.

Regards

Aleanar

Displaying authored content in user profile

Hi, I would like to be able to display all authored content (for example, all nodes that a user created) in their profile in version 7.0. I know that there's mods that allow you to do this in 6.0 -- is there a way for me to get this to work in 7.0?

Thanks!

-- Chris

CSS and color disappear

Hi.

I have one.com as a host and i have a problem when changing color. I have so far tried: Bartik, Garland and Mayo. All of them loses all CSS and color when im changing the color. So far i've tried to change permisions and delete the color.css to see if it gets rebuild. But no luck.
Is there someone smarter than me that can tell me what is going wrong here?

P.S. Yes i have searched the forum. And the web for this problem.

Regards /Stephan

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x