Seeting the User_profile variable for a specific block

Hi All,

So i understand how to preprocess a specific block to make some variable available for that it, but what i don't understand is where do i grab these variable that i want to be available in my (for this instance ) Block:

I have the follow code:

function THEME_preprocess_block(&$variables) {
	$variables['user_profile']= $user_profile;
  
}

The user_profile return NULL.

UK charity seeks Drupal Developer/Producer

We are looking for a Drupal developer who gets excited doing a lot more than just coding. This role will drive the organisation’s digital development, helping to shape our digital strategy, iteratively improving our digital output, and ensuring our offering is technically robust.

We are looking for a creative, pro-active, open source enthusiast, who is as comfortable explaining architecture to stakeholders as writing a Views plugin, as eager to integrate Just Giving APIs as to tweak our stack config to improve performance.

This is an exciting opportunity within our Digital & CRM team to play a key role in transforming our organisation’s use of digital media. Our key business objective is to increase the patient benefit of our research. The Digital & CRM team helps to do this by driving conversions and building lasting relationships with our supporters through great UI, optimised performance and an integrated user experience.

Do you have...
A passion for open source technology
A desire to help transform online fundraising
A history of contributing to Drupal (and other open source technologies)
2+ years experience working with Drupal
Experience of MYSQL, PHP, Javascript
A selection of CiviCRM, Panels, Views, Ubercart experience
A willingness to learn and share new stuff

How to connect to my sandbox module using git

Hi,
I have created my first sandbox project and created directory in Drupal repository using git.
It is not clear to me, how can I connect to this repository and upload files in my module. (I use Linux terminal).

I have tried to run this command
git clone tomas.teicher@git.drupal.org:project/my_module_name.git

custom data in drupal

very new to drupal. I need to create section of my website that contains a directory of 300 companies. I think it be best to create separate databasetables and not included this data in drupal's nodal architecture. Is there a typical/best practise way to manage custom data in drupal

Custom field only saving the first character of its value in DB

Ive created a custom field type as a module using the Field API.
The field is a textfield that I then enhance with javascript to be hidden and its replaced with a custom world map where the user can drag a pin point around to mark a location (basic pixel coords - not google maps related).
It all works fine and the input's value is updated with a js array string of x/y pixel numbers ex: "[100,200]".
The problem is after submit the string is saved to the DB as "[" but the db field is a varchar(255).

wysiwyg module

I have downloaded and installed wysiwyg module for Drupal 7. In the configuration, there were bunch of other supporting modules to be downloaded and installed. I did download and copy the contents into
sites/all/libraries
However, i get the message that those are not installed. What did I do wrong and what step did I miss. Thanks for your help to a non-techie.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x