Way to access action through url/link

I am using Flag-module together with Views Bulk Operation and the provided Create an archive of selected files-action.

Can I change the default URI scheme in media.variables.inc?

The default URI scheme is public://.
I want to change the default URI scheme to a specific folder (directory) from public://; (Example: article).

So, can I overrive this code from media.variables.inc:

define('MEDIA_RESOURCE_URI_DEFAULT', 'public://');
define('MEDIA_TYPES_DEFAULT', '*');

What should I change at MEDIA_RESOURCE_URI_DEFAULT and MEDIA_TYPES_DEFAULT?

Thank you.

Price quote request for photo gallery solution drupal for drupal 7

I am currently using the module http://drupal.org/project/media_gallery for a pro bono small project I am working on, but it lacks one very critical feature that I need. I create a dozen or so galleries a year and each can contain anywhere for 2 to 200 photos. I need the ability to have each gallery created also create its own folder and have the photos uploaded to it. So something like /sites/default/files then each gallery inside that as it is created like gallery1 gallery2 etc.

Filter by url

Hello, im using Drupal 7 with Views to show some content, and i need to filter by a value in the url, i got something like:

version/242/car/186

I need to show the content for the car 186, i have made a filter by car with "Raw Value From Url" using path 4, but i still see ALL the cars, why?, what im doing wrong?, that url is generated by other view...

user login from code?

Hi,
I am developing a module to fetch some user information from another system into drupal. I have overriden the form_validate of user_login hook and I can create a drupal user from this method. What do I need to do to log this user into drupal from the code?

function unilogin_form_alter(&$form, &$form_state, $form_id) {
if($form_id == 'user_login' || $form_id == 'user_login_block') {
debug($form, "userform content");
$form['#validate'][] = 'unilogin_user_form_validate';
}
}

function unilogin_user_form_validate($form, &$form_state) {
if(!unilogin_authenticate($form_state)) {
form_set_error('login', 'invalid login...');
}
}

function unilogin_authenticate($form_state) {
global $user;
if($user->uid) return FALSE;
$user = user_load_by_name($form_state['values']['name']);
debug($user, "loaded userinfo");
if($user != false) {
return TRUE;
}

$uid = $form_state['values']['name'];
$user_mail = $uid.'@example.com';

$account = new stdClass;
$account->is_new = TRUE;
$account->name = $uid;
$account->pass = user_hash_password($form_state['values']['pass']);
$account->mail = $user_mail;
$account->init = $user_mail;
$account->status = TRUE;

$account->roles = array(DRUPAL_AUTHENTICATED_RID => TRUE);
$account->timezone = variable_get('date_default_timezone', '');
debug($account);

Error After upgradation from Drupal 6 to 7

hello, I am upgrading my site from d6 to d7 . Everything is alright but after the upgradation the following error displayed. Please provide a solution if anyone knows:

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x