Hi,
I am having my own module say "my_module" i have enabled that module in my drupal installation. This module will generate a table say "mm_table". Now please tell me how can i bring that table through autoadmin. Is it possible to edit or delete those table records when i show it through autoadmin module?
please give me how to work those things using drush?
I have installed drush. i am trying to do the above but i could nt achieve. Please help me.

CommentFileSizeAuthor
#6 album.tar_.gz1.04 KB_rune

Comments

_rune’s picture

Status: Active » Closed (fixed)

Hi

Did you read the docs? Its at http://drupal.org/node/653478.

The command you wan't to run is:

drush autoadmin-generate my_module mm_table --write

Deletion is supported.

Cheers and good luck!
Rune

siva.thanush’s picture

Status: Closed (fixed) » Active

Ya i have done this,
So after doing this i went to "admin/content"
it gave me a error msg as
"Module=my_module,Table=mm_table: The setting [alias] is required."
What to do now?
How to set the setting [alias]?
do i need to give the field name and description in the coding,i.e., in the file generated?

_rune’s picture

In the file called [ROOT_FOLDER]/sites/all/modules/my_module/my_module.autoadmin.inc there need to be a key called 'alias' that should have the same name as one of the fields in your table. See http://drupal.org/node/653362.

_rune’s picture

And if you really generated the schema, the 'alias' should never be empty. Can you attach the sql create code here? Then I can take a look.

siva.thanush’s picture

Status: Active » Closed (fixed)

ya it created as i expected but its taking me to the node itself.
So can u tell me is it possible to update the view's single column.
from the view itself.
For example:
___________________________________
user | status |
----------------------------------------------
user1 active(An option to change him block)
user2 active(An option to change him active)

_rune’s picture

Status: Closed (fixed) » Active
StatusFileSize
new1.04 KB

Hey

Added a new beta release (meaning that details can change) that makes customizing the list page possible. You can download that release http://drupal.org/node/581522/release.

Whats new in that release is the "list_display" setting in the schema definition. See the file [PROJECT_ROOT]/sites/all/modules/album/album.autoadmin.inc to see how it is used. The ["list_display"]["list_renderer"] is the callback function for the composite field.

I have attached a module called "album" to this thread as an example of using this new feature.

Hopes this helps!
Rune

Edit: I guess beta releases are not shown on the project frontpage, removed notion of that.

_rune’s picture

Status: Active » Closed (fixed)